xfs: simplify xfs_qm_dqusage_adjust
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Sep 2010 01:44:22 +0000 (01:44 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 18 Oct 2010 20:07:36 +0000 (15:07 -0500)
There is no need to have the users and group/project quota locked at the
same time.  Get rid of xfs_qm_dqget_noattach and just do a xfs_qm_dqget
inside xfs_qm_quotacheck_dqadjust for the quota we are operating on
right now.  The new version of xfs_qm_quotacheck_dqadjust holds the
inode lock over it's operations, which is not a problem as it simply
increments counters and there is no concern about log contention
during mount time.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>

No differences found