提交 67958013 编写于 作者: M Matthew Wilcox (Oracle)

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: NMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <djwong@kernel.org>
上级 60d82310
...@@ -87,6 +87,7 @@ xfs_inode_alloc( ...@@ -87,6 +87,7 @@ xfs_inode_alloc(
/* VFS doesn't initialise i_mode or i_state! */ /* VFS doesn't initialise i_mode or i_state! */
VFS_I(ip)->i_mode = 0; VFS_I(ip)->i_mode = 0;
VFS_I(ip)->i_state = 0; VFS_I(ip)->i_state = 0;
mapping_set_large_folios(VFS_I(ip)->i_mapping);
XFS_STATS_INC(mp, vn_active); XFS_STATS_INC(mp, vn_active);
ASSERT(atomic_read(&ip->i_pincount) == 0); ASSERT(atomic_read(&ip->i_pincount) == 0);
...@@ -320,6 +321,7 @@ xfs_reinit_inode( ...@@ -320,6 +321,7 @@ xfs_reinit_inode(
inode->i_rdev = dev; inode->i_rdev = dev;
inode->i_uid = uid; inode->i_uid = uid;
inode->i_gid = gid; inode->i_gid = gid;
mapping_set_large_folios(inode->i_mapping);
return error; return error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册