xfs_setup_existing_inode only has a single caller, fold it into that.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
* 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:
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;