diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-02-13 14:26:42 +0100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-02-23 03:32:28 +0100 |
commit | ec3ba85f4083d10e32fe58b46db02d78ef71f6b8 (patch) | |
tree | bf8e3b41e913c80f24673b87fb390ce6903d82ac /fs/ocfs2/file.h | |
parent | xfs: stop using xfs_trans_iget in the RT allocator (diff) | |
download | linux-ec3ba85f4083d10e32fe58b46db02d78ef71f6b8.tar.xz linux-ec3ba85f4083d10e32fe58b46db02d78ef71f6b8.zip |
xfs: more sensible inode refcounting for ialloc
Currently we return iodes from xfs_ialloc with just a single reference held.
But we need two references, as one is dropped during transaction commit and
the second needs to be transfered to the VFS. Change xfs_ialloc to use
xfs_iget plus xfs_trans_ijoin_ref to grab two references to the inode,
and remove the now superflous IHOLD calls from all callers. This also
greatly simplifies the error handling in xfs_create and also allow to remove
xfs_trans_iget as no other callers are left.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/ocfs2/file.h')
0 files changed, 0 insertions, 0 deletions