diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-12-06 21:58:22 +0000 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2011-12-15 14:37:32 -0600 |
commit | 78e55892d65ea69fbf252e086375d0d8f081b6c8 (patch) | |
tree | 7f115cdcd97b5dfa6826f8c27427d4061a97591f /fs/xfs/xfs_dquot.c | |
parent | ab680bb739ca0e969148951c2e127f6683dcb933 (diff) |
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>
Diffstat (limited to 'fs/xfs/xfs_dquot.c')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index f1d3ccb2980e..2ce562cb5c78 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -733,7 +733,7 @@ xfs_qm_dqlookup( return -1; } - XFS_DQHOLD(dqp); + dqp->q_nrefs++; /* * move the dquot to the front of the hashchain |