diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2013-01-31 22:25:50 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2013-02-13 09:15:04 -0500 |
commit | e08d8d7f201dc1e64f5d9d5aa2cd4f37aecaaab4 (patch) | |
tree | b621e295d481d2f22b5095364a50125f0d388c98 /fs/gfs2 | |
parent | 2f6c9896f71e6b6c1c565ea76dd9f5e89579c120 (diff) |
gfs2: Modify struct gfs2_quota_change_host to use struct kqid
Cc: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/quota.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 0e7c982377a1..02913e95491c 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -71,7 +71,7 @@ | |||
71 | struct gfs2_quota_change_host { | 71 | struct gfs2_quota_change_host { |
72 | u64 qc_change; | 72 | u64 qc_change; |
73 | u32 qc_flags; /* GFS2_QCF_... */ | 73 | u32 qc_flags; /* GFS2_QCF_... */ |
74 | u32 qc_id; | 74 | struct kqid qc_id; |
75 | }; | 75 | }; |
76 | 76 | ||
77 | static LIST_HEAD(qd_lru_list); | 77 | static LIST_HEAD(qd_lru_list); |
@@ -1200,7 +1200,9 @@ static void gfs2_quota_change_in(struct gfs2_quota_change_host *qc, const void * | |||
1200 | 1200 | ||
1201 | qc->qc_change = be64_to_cpu(str->qc_change); | 1201 | qc->qc_change = be64_to_cpu(str->qc_change); |
1202 | qc->qc_flags = be32_to_cpu(str->qc_flags); | 1202 | qc->qc_flags = be32_to_cpu(str->qc_flags); |
1203 | qc->qc_id = be32_to_cpu(str->qc_id); | 1203 | qc->qc_id = make_kqid(&init_user_ns, |
1204 | (qc->qc_flags & GFS2_QCF_USER)?USRQUOTA:GRPQUOTA, | ||
1205 | be32_to_cpu(str->qc_id)); | ||
1204 | } | 1206 | } |
1205 | 1207 | ||
1206 | int gfs2_quota_init(struct gfs2_sbd *sdp) | 1208 | int gfs2_quota_init(struct gfs2_sbd *sdp) |
@@ -1264,7 +1266,7 @@ int gfs2_quota_init(struct gfs2_sbd *sdp) | |||
1264 | continue; | 1266 | continue; |
1265 | 1267 | ||
1266 | error = qd_alloc(sdp, (qc.qc_flags & GFS2_QCF_USER), | 1268 | error = qd_alloc(sdp, (qc.qc_flags & GFS2_QCF_USER), |
1267 | qc.qc_id, &qd); | 1269 | from_kqid(&init_user_ns, qc.qc_id), &qd); |
1268 | if (error) { | 1270 | if (error) { |
1269 | brelse(bh); | 1271 | brelse(bh); |
1270 | goto fail; | 1272 | goto fail; |