summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2024-05-14 00:37:18 +0200
committerDamien Le Moal <dlemoal@kernel.org>2024-06-11 11:22:57 +0900
commitdf2f9708ff1f23afdf6804bb16199e1903550582 (patch)
tree5b59b13374bfac2cdc03dcbb1a29722700b54565
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff)
downloadlinux-df2f9708ff1f23afdf6804bb16199e1903550582.tar.gz
linux-df2f9708ff1f23afdf6804bb16199e1903550582.tar.bz2
linux-df2f9708ff1f23afdf6804bb16199e1903550582.zip
zonefs: enable support for large folios
Enable large folio support on zonefs. Cc: Matthew Wilcox <willy@infradead.org> Cc: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Bill O'Donnell <bodonnel@redhat.com> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
-rw-r--r--fs/zonefs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c
index 964fa7f24003..faf1eb87895d 100644
--- a/fs/zonefs/super.c
+++ b/fs/zonefs/super.c
@@ -662,6 +662,7 @@ static struct inode *zonefs_get_file_inode(struct inode *dir,
inode->i_op = &zonefs_file_inode_operations;
inode->i_fop = &zonefs_file_operations;
inode->i_mapping->a_ops = &zonefs_file_aops;
+ mapping_set_large_folios(inode->i_mapping);
/* Update the inode access rights depending on the zone condition */
zonefs_inode_update_mode(inode);