aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-01-31 20:49:26 -0500
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 09:15:01 -0500
commitf4108a607f75b073423eed229ee4f95e5fc10631 (patch)
tree3e950c8c7707b04e500d455950e3e57d292f7d1b /fs/gfs2/quota.c
parent393551e9898136513007b1e88a25bd4dcdb0d759 (diff)
gfs2: Split NO_QUOTA_CHANGE inot NO_UID_QUTOA_CHANGE and NO_GID_QUTOA_CHANGE
Split NO_QUOTA_CHANGE into NO_UID_QUTOA_CHANGE and NO_GID_QUTOA_CHANGE so the constants may be well typed. Cc: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r--fs/gfs2/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index e4f6ccf3da64..dbfacaa8b6fb 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -524,7 +524,7 @@ int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid)
524 ip->i_res->rs_qa_qd_num++; 524 ip->i_res->rs_qa_qd_num++;
525 qd++; 525 qd++;
526 526
527 if (uid != NO_QUOTA_CHANGE && uid != ip->i_inode.i_uid) { 527 if (uid != NO_UID_QUOTA_CHANGE && uid != ip->i_inode.i_uid) {
528 error = qdsb_get(sdp, QUOTA_USER, uid, qd); 528 error = qdsb_get(sdp, QUOTA_USER, uid, qd);
529 if (error) 529 if (error)
530 goto out; 530 goto out;
@@ -532,7 +532,7 @@ int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid)
532 qd++; 532 qd++;
533 } 533 }
534 534
535 if (gid != NO_QUOTA_CHANGE && gid != ip->i_inode.i_gid) { 535 if (gid != NO_GID_QUOTA_CHANGE && gid != ip->i_inode.i_gid) {
536 error = qdsb_get(sdp, QUOTA_GROUP, gid, qd); 536 error = qdsb_get(sdp, QUOTA_GROUP, gid, qd);
537 if (error) 537 if (error)
538 goto out; 538 goto out;