aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_dquot.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2013-03-18 10:51:45 -0400
committerBen Myers <bpm@sgi.com>2013-03-22 17:05:52 -0400
commit4b6eae2e6ac8a6671839ccaea1c2e3dd5684f5df (patch)
treef10d88c625429675ba36a1c0a3bc013a737891c2 /fs/xfs/xfs_trans_dquot.c
parentc9bdbdc0741d90908f492415c890b630f43f17f8 (diff)
xfs: pass xfs_dquot to xfs_qm_adjust_dqlimits() instead of xfs_disk_dquot_t
Modify xfs_qm_adjust_dqlimits() to take the xfs_dquot as a parameter instead of just the xfs_disk_dquot_t so we can update in-memory fields if necessary. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans_dquot.c')
-rw-r--r--fs/xfs/xfs_trans_dquot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_trans_dquot.c b/fs/xfs/xfs_trans_dquot.c
index 642c2d6e1db1..fec75d023703 100644
--- a/fs/xfs/xfs_trans_dquot.c
+++ b/fs/xfs/xfs_trans_dquot.c
@@ -326,12 +326,12 @@ xfs_trans_dqlockedjoin(
326 */ 326 */
327void 327void
328xfs_trans_apply_dquot_deltas( 328xfs_trans_apply_dquot_deltas(
329 xfs_trans_t *tp) 329 struct xfs_trans *tp)
330{ 330{
331 int i, j; 331 int i, j;
332 xfs_dquot_t *dqp; 332 struct xfs_dquot *dqp;
333 xfs_dqtrx_t *qtrx, *qa; 333 struct xfs_dqtrx *qtrx, *qa;
334 xfs_disk_dquot_t *d; 334 struct xfs_disk_dquot *d;
335 long totalbdelta; 335 long totalbdelta;
336 long totalrtbdelta; 336 long totalrtbdelta;
337 337
@@ -412,7 +412,7 @@ xfs_trans_apply_dquot_deltas(
412 * Start/reset the timer(s) if needed. 412 * Start/reset the timer(s) if needed.
413 */ 413 */
414 if (d->d_id) { 414 if (d->d_id) {
415 xfs_qm_adjust_dqlimits(tp->t_mountp, d); 415 xfs_qm_adjust_dqlimits(tp->t_mountp, dqp);
416 xfs_qm_adjust_dqtimers(tp->t_mountp, d); 416 xfs_qm_adjust_dqtimers(tp->t_mountp, d);
417 } 417 }
418 418