* [PATCH] erofs: support large folio in inode_share mode
@ 2026-08-21 11:25 Jingbo Xu
2026-08-21 14:32 ` Gao Xiang
2026-08-24 0:47 ` Chao Yu
0 siblings, 2 replies; 3+ messages in thread
From: Jingbo Xu @ 2026-08-21 11:25 UTC (permalink / raw)
To: xiang, chao, linux-erofs; +Cc: linux-kernel
erofs_fill_inode() calls mapping_set_large_folios() on each erofs
file's own mapping, but in inode_share mode reads are routed to the
shared inode's page cache instead, whose mapping never had large
folio support enabled.
Set up large folios for the shared inode's mapping as well.
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
fs/erofs/ishare.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/erofs/ishare.c b/fs/erofs/ishare.c
index 4c7be60565cb..b8897dd6be72 100644
--- a/fs/erofs/ishare.c
+++ b/fs/erofs/ishare.c
@@ -54,6 +54,7 @@ bool erofs_ishare_fill_inode(struct inode *inode)
si->i_mapping->a_ops = aops;
si->i_mode = 0444 | S_IFREG;
si->i_size = inode->i_size;
+ mapping_set_large_folios(si->i_mapping);
unlock_new_inode(si);
} else {
kfree(fp.opaque);
--
2.19.1.6.gb485710b
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] erofs: support large folio in inode_share mode
2026-08-21 11:25 [PATCH] erofs: support large folio in inode_share mode Jingbo Xu
@ 2026-08-21 14:32 ` Gao Xiang
2026-08-24 0:47 ` Chao Yu
1 sibling, 0 replies; 3+ messages in thread
From: Gao Xiang @ 2026-08-21 14:32 UTC (permalink / raw)
To: Jingbo Xu; +Cc: xiang, chao, linux-erofs, linux-kernel
On Fri, Aug 21, 2026 at 07:25:40PM +0800, Jingbo Xu wrote:
> erofs_fill_inode() calls mapping_set_large_folios() on each erofs
> file's own mapping, but in inode_share mode reads are routed to the
> shared inode's page cache instead, whose mapping never had large
> folio support enabled.
>
> Set up large folios for the shared inode's mapping as well.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <xiang@kernel.org>
Thanks,
Gao Xiang
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] erofs: support large folio in inode_share mode
2026-08-21 11:25 [PATCH] erofs: support large folio in inode_share mode Jingbo Xu
2026-08-21 14:32 ` Gao Xiang
@ 2026-08-24 0:47 ` Chao Yu
1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2026-08-24 0:47 UTC (permalink / raw)
To: Jingbo Xu, xiang, linux-erofs; +Cc: chao, linux-kernel
On 8/21/26 19:25, Jingbo Xu wrote:
> erofs_fill_inode() calls mapping_set_large_folios() on each erofs
> file's own mapping, but in inode_share mode reads are routed to the
> shared inode's page cache instead, whose mapping never had large
> folio support enabled.
>
> Set up large folios for the shared inode's mapping as well.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-24 0:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21 11:25 [PATCH] erofs: support large folio in inode_share mode Jingbo Xu
2026-08-21 14:32 ` Gao Xiang
2026-08-24 0:47 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®