diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2013-01-31 23:27:54 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2013-02-13 09:15:09 -0500 |
commit | 7c06b5d67225dc99ca81a33db3e055e08da857c3 (patch) | |
tree | 4a7f88ebfc75c5402c70bd4c5ea86f085e769dcb /fs | |
parent | 236c64e4b79b78059ec3e17362d8f02f6dc06f26 (diff) |
gfs2: Use kuid_t and kgid_t types where appropriate.
Cc: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/inode.c | 3 | ||||
-rw-r--r-- | fs/gfs2/quota.c | 8 | ||||
-rw-r--r-- | fs/gfs2/quota.h | 8 |
3 files changed, 10 insertions, 9 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index aa1050287f3c..ce07ce4734f4 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -1580,7 +1580,8 @@ static int setattr_chown(struct inode *inode, struct iattr *attr) | |||
1580 | { | 1580 | { |
1581 | struct gfs2_inode *ip = GFS2_I(inode); | 1581 | struct gfs2_inode *ip = GFS2_I(inode); |
1582 | struct gfs2_sbd *sdp = GFS2_SB(inode); | 1582 | struct gfs2_sbd *sdp = GFS2_SB(inode); |
1583 | u32 ouid, ogid, nuid, ngid; | 1583 | kuid_t ouid, nuid; |
1584 | kgid_t ogid, ngid; | ||
1584 | int error; | 1585 | int error; |
1585 | 1586 | ||
1586 | ouid = inode->i_uid; | 1587 | ouid = inode->i_uid; |
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 0bbb0407fd96..87f274039c4b 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -492,7 +492,7 @@ static void qdsb_put(struct gfs2_quota_data *qd) | |||
492 | qd_put(qd); | 492 | qd_put(qd); |
493 | } | 493 | } |
494 | 494 | ||
495 | int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid) | 495 | int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) |
496 | { | 496 | { |
497 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); | 497 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); |
498 | struct gfs2_quota_data **qd; | 498 | struct gfs2_quota_data **qd; |
@@ -918,7 +918,7 @@ fail: | |||
918 | return error; | 918 | return error; |
919 | } | 919 | } |
920 | 920 | ||
921 | int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid) | 921 | int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) |
922 | { | 922 | { |
923 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); | 923 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); |
924 | struct gfs2_quota_data *qd; | 924 | struct gfs2_quota_data *qd; |
@@ -1039,7 +1039,7 @@ static int print_message(struct gfs2_quota_data *qd, char *type) | |||
1039 | return 0; | 1039 | return 0; |
1040 | } | 1040 | } |
1041 | 1041 | ||
1042 | int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid) | 1042 | int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) |
1043 | { | 1043 | { |
1044 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); | 1044 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); |
1045 | struct gfs2_quota_data *qd; | 1045 | struct gfs2_quota_data *qd; |
@@ -1088,7 +1088,7 @@ int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid) | |||
1088 | } | 1088 | } |
1089 | 1089 | ||
1090 | void gfs2_quota_change(struct gfs2_inode *ip, s64 change, | 1090 | void gfs2_quota_change(struct gfs2_inode *ip, s64 change, |
1091 | u32 uid, u32 gid) | 1091 | kuid_t uid, kgid_t gid) |
1092 | { | 1092 | { |
1093 | struct gfs2_quota_data *qd; | 1093 | struct gfs2_quota_data *qd; |
1094 | unsigned int x; | 1094 | unsigned int x; |
diff --git a/fs/gfs2/quota.h b/fs/gfs2/quota.h index bef805de8491..4f5e6e44ed83 100644 --- a/fs/gfs2/quota.h +++ b/fs/gfs2/quota.h | |||
@@ -17,15 +17,15 @@ struct shrink_control; | |||
17 | #define NO_UID_QUOTA_CHANGE INVALID_UID | 17 | #define NO_UID_QUOTA_CHANGE INVALID_UID |
18 | #define NO_GID_QUOTA_CHANGE INVALID_GID | 18 | #define NO_GID_QUOTA_CHANGE INVALID_GID |
19 | 19 | ||
20 | extern int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid); | 20 | extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); |
21 | extern void gfs2_quota_unhold(struct gfs2_inode *ip); | 21 | extern void gfs2_quota_unhold(struct gfs2_inode *ip); |
22 | 22 | ||
23 | extern int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid); | 23 | extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); |
24 | extern void gfs2_quota_unlock(struct gfs2_inode *ip); | 24 | extern void gfs2_quota_unlock(struct gfs2_inode *ip); |
25 | 25 | ||
26 | extern int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid); | 26 | extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); |
27 | extern void gfs2_quota_change(struct gfs2_inode *ip, s64 change, | 27 | extern void gfs2_quota_change(struct gfs2_inode *ip, s64 change, |
28 | u32 uid, u32 gid); | 28 | kuid_t uid, kgid_t gid); |
29 | 29 | ||
30 | extern int gfs2_quota_sync(struct super_block *sb, int type); | 30 | extern int gfs2_quota_sync(struct super_block *sb, int type); |
31 | extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid); | 31 | extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid); |