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

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>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_dquot.h
fs/xfs/xfs_qm.c