From: Christoph Hellwig Date: Fri, 15 May 2026 13:50:29 +0000 (+0200) Subject: xfs: remove xfs_setup_existing_inode X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=79c1363d33c170b844706a571f150192ffcefbdb;p=thirdparty%2Flinux.git xfs: remove xfs_setup_existing_inode xfs_setup_existing_inode only has a single caller, fold it into that. Signed-off-by: Christoph Hellwig Reviewed-by: Carlos Maiolino Reviewed-by: "Darrick J. Wong" Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index d0bc8ea79d40f..37caed10c0896 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -817,8 +817,11 @@ again: * 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) - xfs_setup_existing_inode(ip); + if (xfs_iflags_test(ip, XFS_INEW) && VFS_I(ip)->i_mode != 0) { + xfs_setup_inode(ip); + xfs_setup_iops(ip); + xfs_finish_inode_setup(ip); + } return 0; out_error_or_again: diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index bd6d335571943..724baea02c8d4 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -630,13 +630,6 @@ static inline void xfs_finish_inode_setup(struct xfs_inode *ip) unlock_new_inode(VFS_I(ip)); } -static inline void xfs_setup_existing_inode(struct xfs_inode *ip) -{ - xfs_setup_inode(ip); - xfs_setup_iops(ip); - xfs_finish_inode_setup(ip); -} - void xfs_irele(struct xfs_inode *ip); extern struct kmem_cache *xfs_inode_cache;