From e8cf10dec31a1cba987cb948e53f7e8d97b49c8d Mon Sep 17 00:00:00 2001 From: Steven Whitehouse Date: Tue, 15 Sep 2009 16:20:30 +0100 Subject: [PATCH] --- yaml --- r: 169191 b: refs/heads/master c: ea7623385930c63e2a35749cff9db72094cd06ad h: refs/heads/master i: 169189: 3f875ac5a2559bb81416bd372a30f9ee92792e0c 169187: 1daeb44c7d8073f646600cae467c63ae71b39bf9 169183: beba2d1bf1aa75ee4c903d8e796b742dda45f995 v: v3 --- [refs] | 2 +- trunk/fs/gfs2/sys.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 0941772b22ed..f99514571a62 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1d371b5e179d943491a5fddad211cb317f38a142 +refs/heads/master: ea7623385930c63e2a35749cff9db72094cd06ad diff --git a/trunk/fs/gfs2/sys.c b/trunk/fs/gfs2/sys.c index be1b8aca5906..c5dad1eb7b91 100644 --- a/trunk/fs/gfs2/sys.c +++ b/trunk/fs/gfs2/sys.c @@ -178,6 +178,7 @@ 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)) @@ -185,13 +186,14 @@ static ssize_t quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf, 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)) @@ -199,8 +201,8 @@ static ssize_t quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf, 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)