Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357796
b: refs/heads/master
c: 7c06b5d
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent f427239 commit c411796
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 236c64e4b79b78059ec3e17362d8f02f6dc06f26
refs/heads/master: 7c06b5d67225dc99ca81a33db3e055e08da857c3
3 changes: 2 additions & 1 deletion trunk/fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,8 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
{
struct gfs2_inode *ip = GFS2_I(inode);
struct gfs2_sbd *sdp = GFS2_SB(inode);
u32 ouid, ogid, nuid, ngid;
kuid_t ouid, nuid;
kgid_t ogid, ngid;
int error;

ouid = inode->i_uid;
Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/gfs2/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ static void qdsb_put(struct gfs2_quota_data *qd)
qd_put(qd);
}

int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid)
int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid)
{
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
struct gfs2_quota_data **qd;
Expand Down Expand Up @@ -918,7 +918,7 @@ static int do_glock(struct gfs2_quota_data *qd, int force_refresh,
return error;
}

int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid)
int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid)
{
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
struct gfs2_quota_data *qd;
Expand Down Expand Up @@ -1039,7 +1039,7 @@ static int print_message(struct gfs2_quota_data *qd, char *type)
return 0;
}

int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid)
int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid)
{
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
struct gfs2_quota_data *qd;
Expand Down Expand Up @@ -1088,7 +1088,7 @@ int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid)
}

void gfs2_quota_change(struct gfs2_inode *ip, s64 change,
u32 uid, u32 gid)
kuid_t uid, kgid_t gid)
{
struct gfs2_quota_data *qd;
unsigned int x;
Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/gfs2/quota.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ struct shrink_control;
#define NO_UID_QUOTA_CHANGE INVALID_UID
#define NO_GID_QUOTA_CHANGE INVALID_GID

extern int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid);
extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
extern void gfs2_quota_unhold(struct gfs2_inode *ip);

extern int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid);
extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
extern void gfs2_quota_unlock(struct gfs2_inode *ip);

extern int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid);
extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
extern void gfs2_quota_change(struct gfs2_inode *ip, s64 change,
u32 uid, u32 gid);
kuid_t uid, kgid_t gid);

extern int gfs2_quota_sync(struct super_block *sb, int type);
extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
Expand Down

0 comments on commit c411796

Please sign in to comment.