]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: move inode locking functions to xfs_inode.c
authorDave Chinner <dchinner@redhat.com>
Mon, 8 Oct 2012 10:56:10 +0000 (21:56 +1100)
committerBen Myers <bpm@sgi.com>
Wed, 17 Oct 2012 18:40:54 +0000 (13:40 -0500)
commitfdceae2212c814e10af23edeaab9f67f4e678faa
tree6fd1e828965e0b7bdb66e99ac532547272f7c217
parent7832109cf07ce256a5997759e1632db9fdb3c7ea
xfs: move inode locking functions to xfs_inode.c

xfs_ilock() and friends really aren't related to the inode cache in
any way, so move them to xfs_inode.c with all the other inode
related functionality.

While doing this move, move the xfs_ilock() tracepoints to *before*
the lock is taken so that when a hang on a lock occurs we have
events to indicate which process and what inode we were trying to
lock when the hang occurred. This is much better than the current
silence we get on a hang...

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.c