mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
xfs: remove xfs_setup_existing_inode
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>
This commit is contained in:
parent
bef4cee25f
commit
79c1363d33
|
|
@ -817,8 +817,11 @@ xfs_iget(
|
|||
* 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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user