]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
xfs: lockdep annotations for xfs_dqlock2
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:03:19 +0000 (02:03 +0100)
committerLachlan McIlroy <lachlan@sgi.com>
Mon, 19 Jan 2009 03:44:52 +0000 (14:44 +1100)
commit4f2d4ac6e5eb7d72e8df7f3fbf67a78dab8b91cf
tree821d74c2055ebbc8070db1e881762bcc805e90a5
parent080dda7f5e8e8df95bcd17a5345c276e365a2054
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