xfs: add a xfs_dqhold helper
authorChristoph Hellwig <hch@infradead.org>
Tue, 6 Dec 2011 21:58:22 +0000 (21:58 +0000)
committerBen Myers <bpm@sgi.com>
Thu, 15 Dec 2011 20:37:32 +0000 (14:37 -0600)
Factor the common pattern of:

xfs_dqlock(dqp);
XFS_DQHOLD(dqp);
xfs_dqunlock(dqp);

into a new helper, and remove XFS_DQHOLD now that only one other caller
is left.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

No differences found