xfs: lockdep annotations for xfs_dqlock2
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:03:19 +0000 (02:03 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 19 Jan 2009 01:03:19 +0000 (02:03 +0100)
commit5bb87a33b2cfb8e7ef3383718274094bdff266a3
tree7917b0354e01dde2fc321a48214f72333aab3073
parenta4edd1da20af79b2e92efeee3ca94831c8024d61
xfs: lockdep annotations for xfs_dqlock2

xfs_dqlock2 locks two xfs_dquots, which is fine as it always locks the
dquot with the lower id first.  Use mutex_lock_nested to tell lockdep
about this fact.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
fs/xfs/quota/xfs_dquot.c
fs/xfs/quota/xfs_dquot.h