]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] implement IHOLD/IRELE directly
authorChristoph Hellwig <hch@infradead.org>
Wed, 13 Aug 2008 06:13:45 +0000 (16:13 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 06:13:45 +0000 (16:13 +1000)
commit9daa06d0679b5fd4258232e5a0820797c374b452
treea6c835cf6b5be39111c0107039e8123e273339a2
parent22e367a6ce44364d0ea1a51daad6930923e220d2
[XFS] implement IHOLD/IRELE directly

Now that all direct calls to VN_HOLD/VN_RELE are gone we can implement
IHOLD/IRELE directly.

For the IHOLD case also replace igrab with a direct increment of i_count
because we are guaranteed to already have a live and referenced inode by
the VFS. Also remove the vn_hold statistic because it's been rather
meaningless for some time with most references done by other callers.

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31764a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_vnode.c
fs/xfs/linux-2.6/xfs_vnode.h
fs/xfs/xfs_utils.h