xfs: add a lock class for group/project dquots
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:03:25 +0000 (02:03 +0100)
committerLachlan McIlroy <lachlan@sgi.com>
Mon, 19 Jan 2009 03:44:59 +0000 (14:44 +1100)
commit5aa2dc0a0697c762874241fa9ddbecd2d878b934
tree48ceaae74318d871b5b1d0a75484b02283712697
parent4f2d4ac6e5eb7d72e8df7f3fbf67a78dab8b91cf
xfs: add a lock class for group/project dquots

We can have both a user and a group/project dquot locked at the same time,
as long as the user dquot is locked first.  Tell lockdep about that fact
by making the group/project dquots a different lock class.

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