diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-09-15 11:25:40 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-12-03 06:50:20 -0500 |
commit | 33a82529e7007ed7beceebc6b3f3cddadb5b67f0 (patch) | |
tree | 41746a2eee267900fdb8b636f1b8b2208509a671 /fs/gfs2/quota.c | |
parent | ea7623385930c63e2a35749cff9db72094cd06ad (diff) |
GFS2: Remove constant argument from qdsb_get()
The "create" argument to qdsb_get() was only ever set to true,
so this patch removes that argument.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r-- | fs/gfs2/quota.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index e7114be7b449..f790f5af74e3 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -462,12 +462,12 @@ static void qd_unlock(struct gfs2_quota_data *qd) | |||
462 | qd_put(qd); | 462 | qd_put(qd); |
463 | } | 463 | } |
464 | 464 | ||
465 | static int qdsb_get(struct gfs2_sbd *sdp, int user, u32 id, int create, | 465 | static int qdsb_get(struct gfs2_sbd *sdp, int user, u32 id, |
466 | struct gfs2_quota_data **qdp) | 466 | struct gfs2_quota_data **qdp) |
467 | { | 467 | { |
468 | int error; | 468 | int error; |
469 | 469 | ||
470 | error = qd_get(sdp, user, id, create, qdp); | 470 | error = qd_get(sdp, user, id, CREATE, qdp); |
471 | if (error) | 471 | if (error) |
472 | return error; | 472 | return error; |
473 | 473 | ||
@@ -509,20 +509,20 @@ int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid) | |||
509 | if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) | 509 | if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) |
510 | return 0; | 510 | return 0; |
511 | 511 | ||
512 | error = qdsb_get(sdp, QUOTA_USER, ip->i_inode.i_uid, CREATE, qd); | 512 | error = qdsb_get(sdp, QUOTA_USER, ip->i_inode.i_uid, qd); |
513 | if (error) | 513 | if (error) |
514 | goto out; | 514 | goto out; |
515 | al->al_qd_num++; | 515 | al->al_qd_num++; |
516 | qd++; | 516 | qd++; |
517 | 517 | ||
518 | error = qdsb_get(sdp, QUOTA_GROUP, ip->i_inode.i_gid, CREATE, qd); | 518 | error = qdsb_get(sdp, QUOTA_GROUP, ip->i_inode.i_gid, qd); |
519 | if (error) | 519 | if (error) |
520 | goto out; | 520 | goto out; |
521 | al->al_qd_num++; | 521 | al->al_qd_num++; |
522 | qd++; | 522 | qd++; |
523 | 523 | ||
524 | if (uid != NO_QUOTA_CHANGE && uid != ip->i_inode.i_uid) { | 524 | if (uid != NO_QUOTA_CHANGE && uid != ip->i_inode.i_uid) { |
525 | error = qdsb_get(sdp, QUOTA_USER, uid, CREATE, qd); | 525 | error = qdsb_get(sdp, QUOTA_USER, uid, qd); |
526 | if (error) | 526 | if (error) |
527 | goto out; | 527 | goto out; |
528 | al->al_qd_num++; | 528 | al->al_qd_num++; |
@@ -530,7 +530,7 @@ int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid) | |||
530 | } | 530 | } |
531 | 531 | ||
532 | if (gid != NO_QUOTA_CHANGE && gid != ip->i_inode.i_gid) { | 532 | if (gid != NO_QUOTA_CHANGE && gid != ip->i_inode.i_gid) { |
533 | error = qdsb_get(sdp, QUOTA_GROUP, gid, CREATE, qd); | 533 | error = qdsb_get(sdp, QUOTA_GROUP, gid, qd); |
534 | if (error) | 534 | if (error) |
535 | goto out; | 535 | goto out; |
536 | al->al_qd_num++; | 536 | al->al_qd_num++; |