summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-01-31 19:42:40 -0800
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 06:15:06 -0800
commited87dabcc3fc0a5040f95dd3f7206cffebca5c79 (patch)
tree5b78136ba32b35c63150b3edcc2f05416914b0c4 /fs/gfs2/quota.c
parentb59c8b6f9d1b1220e5ed72152f42a658bf739d90 (diff)
downloadlinux-ed87dabcc3fc0a5040f95dd3f7206cffebca5c79.tar.gz
linux-ed87dabcc3fc0a5040f95dd3f7206cffebca5c79.tar.bz2
linux-ed87dabcc3fc0a5040f95dd3f7206cffebca5c79.zip
gfs2: Convert gfs2_quota_refresh to take a kqid
- In quota_refresh_user_store convert the user supplied uid into a kqid and pass it to gfs2_quota_refresh. - In quota_refresh_group_store convert the user supplied gid into a kqid and pass it to gfs2_quota_refresh. 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 20762ae2a9c4..47315c091a09 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1177,13 +1177,14 @@ static int gfs2_quota_sync_timeo(struct super_block *sb, int type)
return gfs2_quota_sync(sb, type);
}
-int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id)
+int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid)
{
struct gfs2_quota_data *qd;
struct gfs2_holder q_gh;
int error;
- error = qd_get(sdp, user, id, &qd);
+ error = qd_get(sdp, qid.type == USRQUOTA ? QUOTA_USER : QUOTA_GROUP,
+ from_kqid(&init_user_ns, qid), &qd);
if (error)
return error;