mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 06:46:35 +01:00
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]>
This commit is contained in:
1 parent
60d8231089
commit
6795801366
1 file changed
+2
@@ -87,6 +87,7 @@ xfs_inode_alloc(
|
||||
/* VFS doesn't initialise i_mode or i_state! */
|
||||
VFS_I(ip)->i_mode = 0;
|
||||
VFS_I(ip)->i_state = 0;
|
||||
mapping_set_large_folios(VFS_I(ip)->i_mapping);
|
||||
|
||||
XFS_STATS_INC(mp, vn_active);
|
||||
ASSERT(atomic_read(&ip->i_pincount) == 0);
|
||||
@@ -320,6 +321,7 @@ xfs_reinit_inode(
|
||||
inode->i_rdev = dev;
|
||||
inode->i_uid = uid;
|
||||
inode->i_gid = gid;
|
||||
mapping_set_large_folios(inode->i_mapping);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user