Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169193
b: refs/heads/master
c: 6a6ada8
h: refs/heads/master
i:
  169191: e8cf10d
v: v3
  • Loading branch information
Steven Whitehouse committed Dec 3, 2009
1 parent 704b3d2 commit 275a8d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 33a82529e7007ed7beceebc6b3f3cddadb5b67f0
refs/heads/master: 6a6ada81e4ffc222bf7e54ea7503c7cc98b4f0d8
8 changes: 4 additions & 4 deletions trunk/fs/gfs2/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static int qd_alloc(struct gfs2_sbd *sdp, int user, u32 id,
return error;
}

static int qd_get(struct gfs2_sbd *sdp, int user, u32 id, int create,
static int qd_get(struct gfs2_sbd *sdp, int user, u32 id,
struct gfs2_quota_data **qdp)
{
struct gfs2_quota_data *qd = NULL, *new_qd = NULL;
Expand Down Expand Up @@ -203,7 +203,7 @@ static int qd_get(struct gfs2_sbd *sdp, int user, u32 id, int create,

spin_unlock(&qd_lru_lock);

if (qd || !create) {
if (qd) {
if (new_qd) {
gfs2_glock_put(new_qd->qd_gl);
kmem_cache_free(gfs2_quotad_cachep, new_qd);
Expand Down Expand Up @@ -467,7 +467,7 @@ static int qdsb_get(struct gfs2_sbd *sdp, int user, u32 id,
{
int error;

error = qd_get(sdp, user, id, CREATE, qdp);
error = qd_get(sdp, user, id, qdp);
if (error)
return error;

Expand Down Expand Up @@ -1117,7 +1117,7 @@ int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id)
struct gfs2_holder q_gh;
int error;

error = qd_get(sdp, user, id, CREATE, &qd);
error = qd_get(sdp, user, id, &qd);
if (error)
return error;

Expand Down

0 comments on commit 275a8d3

Please sign in to comment.