xfs: add a separate lock class for the per-mount list of dquots
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:03:11 +0000 (02:03 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 19 Jan 2009 01:03:11 +0000 (02:03 +0100)
commita4edd1da20af79b2e92efeee3ca94831c8024d61
tree920e0730dd3e84fb24bc64aab24ca049b5389cdb
parent178eae342b34185ef7b11e62df2f74ba45daa56e
xfs: add a separate lock class for the per-mount list of dquots

We can have both a a quota hash chain and the per-mount list locked at
the same time.  But given that both use the same struct dqhash as list
head we have to tell lockdep that they are different lock classes.

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