Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169191
b: refs/heads/master
c: ea76233
h: refs/heads/master
i:
  169189: 3f875ac
  169187: 1daeb44
  169183: beba2d1
v: v3
  • Loading branch information
Steven Whitehouse committed Dec 3, 2009
1 parent 7698f4f commit e8cf10d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 1d371b5e179d943491a5fddad211cb317f38a142
refs/heads/master: ea7623385930c63e2a35749cff9db72094cd06ad
10 changes: 6 additions & 4 deletions trunk/fs/gfs2/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,29 +178,31 @@ static ssize_t quota_sync_store(struct gfs2_sbd *sdp, const char *buf,
static ssize_t quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf,
size_t len)
{
int error;
u32 id;

if (!capable(CAP_SYS_ADMIN))
return -EACCES;

id = simple_strtoul(buf, NULL, 0);

gfs2_quota_refresh(sdp, 1, id);
return len;
error = gfs2_quota_refresh(sdp, 1, id);
return error ? error : len;
}

static ssize_t quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf,
size_t len)
{
int error;
u32 id;

if (!capable(CAP_SYS_ADMIN))
return -EACCES;

id = simple_strtoul(buf, NULL, 0);

gfs2_quota_refresh(sdp, 0, id);
return len;
error = gfs2_quota_refresh(sdp, 0, id);
return error ? error : len;
}

static ssize_t demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len)
Expand Down

0 comments on commit e8cf10d

Please sign in to comment.