diff options
author | 2008-12-03 12:20:27 +0100 | |
---|---|---|
committer | 2008-12-04 15:39:21 +1100 | |
commit | d9424b3c4a1e96f87c6cfd4d8dd2f8d9bbb4dcc5 (patch) | |
tree | 5f849561a23be97f4d90512551405c79f4b44748 /include/linux/kernel.h | |
parent | kill xfs_buf_iostart (diff) | |
download | wireguard-linux-d9424b3c4a1e96f87c6cfd4d8dd2f8d9bbb4dcc5.tar.xz wireguard-linux-d9424b3c4a1e96f87c6cfd4d8dd2f8d9bbb4dcc5.zip |
stop using igrab in xfs_vn_link
->link is guranteed to get an already reference inode passed so we
can do a simple increment of i_count instead of using igrab and thus
avoid banging on the global inode_lock. This is what most filesystems
already do.
Also move the increment after the call to xfs_link to simplify error
handling.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions