]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit584903b1e00959d5d4d00510d5174a925eede11b
tree7f115cdcd97b5dfa6826f8c27427d4061a97591f
parent5fe6997a0bed9b5eb9b4aead82e13f033bb13a0c
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