Skip to content

Commit 6795801

Browse files
author
Matthew Wilcox (Oracle)
committed
xfs: Support large folios
Now that iomap has been converted, XFS is large folio safe. Indicate to the VFS that it can now create large folios for XFS. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]>
1 parent 60d8231 commit 6795801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/xfs/xfs_icache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ xfs_inode_alloc(
8787
/* VFS doesn't initialise i_mode or i_state! */
8888
VFS_I(ip)->i_mode = 0;
8989
VFS_I(ip)->i_state = 0;
90+
mapping_set_large_folios(VFS_I(ip)->i_mapping);
9091

9192
XFS_STATS_INC(mp, vn_active);
9293
ASSERT(atomic_read(&ip->i_pincount) == 0);
@@ -320,6 +321,7 @@ xfs_reinit_inode(
320321
inode->i_rdev = dev;
321322
inode->i_uid = uid;
322323
inode->i_gid = gid;
324+
mapping_set_large_folios(inode->i_mapping);
323325
return error;
324326
}
325327

0 commit comments

Comments
 (0)