xfs: clean up IRELE/iput callsites
Replace the IRELE macro with a proper function so that we can do proper typechecking and so that we can stop open-coding iput in scrub, which means that we'll be able to ftrace inode lifetimes going through scrub correctly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -209,7 +209,7 @@ xfs_generic_create(
|
||||
xfs_finish_inode_setup(ip);
|
||||
if (!tmpfile)
|
||||
xfs_cleanup_inode(dir, inode, dentry);
|
||||
iput(inode);
|
||||
xfs_irele(ip);
|
||||
goto out_free_acl;
|
||||
}
|
||||
|
||||
@@ -391,7 +391,7 @@ xfs_vn_symlink(
|
||||
out_cleanup_inode:
|
||||
xfs_finish_inode_setup(cip);
|
||||
xfs_cleanup_inode(dir, inode, dentry);
|
||||
iput(inode);
|
||||
xfs_irele(cip);
|
||||
out:
|
||||
return error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user