Skip to content

Commit 132c460

Browse files
xuyang0410Darrick J. Wong
authored andcommitted
xfs: Fix comments mentioning xfs_ialloc
Since kernel commit 1abcf26 ("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: Yang Xu <xuyang2018.jy@fujitsu.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
1 parent 09654ed commit 132c460

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

fs/xfs/xfs_icache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ xfs_iget(
749749

750750
/*
751751
* If we have a real type for an on-disk inode, we can setup the inode
752-
* now. If it's a new inode being created, xfs_ialloc will handle it.
752+
* now. If it's a new inode being created, xfs_init_new_inode will
753+
* handle it.
753754
*/
754755
if (xfs_iflags_test(ip, XFS_INEW) && VFS_I(ip)->i_mode != 0)
755756
xfs_setup_existing_inode(ip);

fs/xfs/xfs_iops.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,9 +1303,9 @@ xfs_diflags_to_iflags(
13031303
* Initialize the Linux inode.
13041304
*
13051305
* When reading existing inodes from disk this is called directly from xfs_iget,
1306-
* when creating a new inode it is called from xfs_ialloc after setting up the
1307-
* inode. These callers have different criteria for clearing XFS_INEW, so leave
1308-
* it up to the caller to deal with unlocking the inode appropriately.
1306+
* when creating a new inode it is called from xfs_init_new_inode after setting
1307+
* up the inode. These callers have different criteria for clearing XFS_INEW, so
1308+
* leave it up to the caller to deal with unlocking the inode appropriately.
13091309
*/
13101310
void
13111311
xfs_setup_inode(

0 commit comments

Comments
 (0)