Skip to contentSkip to conversation

zonefs: enable support for large folios

PATCH Applied Johannes Thumshirn 3 participants 3 messages May 13, 2024 – May 27, 2024

Subsystems (2)
lore
Share & tools
lore

Johannes Thumshirn

author reviewer
#0 lore raw

PATCH 1/1 zonefs: enable support for large folios

From: Johannes Thumshirn <[email protected]>

Enable large folio support on zonefs.

Cc Matthew Wilcox <[email protected]>
Cc Damien Le Moal <[email protected]>
---
 fs/zonefs/super.c | 1 +
 1 file changed, 1 insertion(+)
fs/zonefs/super.c +1 -0
index 37080ec516e8..3c5b4c3a0c3e 100644
@@ -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);
Signature · 1 line
2.35.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Johannes Thumshirn

From: Johannes Thumshirn <[email protected]>

Enable large folio support on zonefs.

Cc Matthew Wilcox <[email protected]>
Cc Damien Le Moal <[email protected]>

Looks fine.

Quoted 20 lines
---
 fs/zonefs/super.c | 1 +
 1 file changed, 1 insertion(+)
fs/zonefs/super.c +1 -0
index 37080ec516e8..3c5b4c3a0c3e 100644
@@ -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);
Signature · 1 line
2.35.3