Commit 132c460e authored by Yang Xu's avatar Yang Xu Committed by Darrick J. Wong

xfs: Fix comments mentioning xfs_ialloc

Since kernel commit 1abcf261 ("xfs: move on-disk inode allocation out of xfs_ialloc()"),
xfs_ialloc has been renamed to xfs_init_new_inode. So update this in comments.
Signed-off-by: default avatarYang Xu <xuyang2018.jy@fujitsu.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent 09654ed8
...@@ -749,7 +749,8 @@ xfs_iget( ...@@ -749,7 +749,8 @@ xfs_iget(
/* /*
* If we have a real type for an on-disk inode, we can setup the inode * If we have a real type for an on-disk inode, we can setup the inode
* now. If it's a new inode being created, xfs_ialloc will handle it. * now. If it's a new inode being created, xfs_init_new_inode will
* handle it.
*/ */
if (xfs_iflags_test(ip, XFS_INEW) && VFS_I(ip)->i_mode != 0) if (xfs_iflags_test(ip, XFS_INEW) && VFS_I(ip)->i_mode != 0)
xfs_setup_existing_inode(ip); xfs_setup_existing_inode(ip);
......
...@@ -1303,9 +1303,9 @@ xfs_diflags_to_iflags( ...@@ -1303,9 +1303,9 @@ xfs_diflags_to_iflags(
* Initialize the Linux inode. * Initialize the Linux inode.
* *
* When reading existing inodes from disk this is called directly from xfs_iget, * When reading existing inodes from disk this is called directly from xfs_iget,
* when creating a new inode it is called from xfs_ialloc after setting up the * when creating a new inode it is called from xfs_init_new_inode after setting
* inode. These callers have different criteria for clearing XFS_INEW, so leave * up the inode. These callers have different criteria for clearing XFS_INEW, so
* it up to the caller to deal with unlocking the inode appropriately. * leave it up to the caller to deal with unlocking the inode appropriately.
*/ */
void void
xfs_setup_inode( xfs_setup_inode(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment