Loading fs/gfs2/sys.c +6 −4 Original line number Diff line number Diff line Loading @@ -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)) Loading @@ -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)) Loading @@ -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) Loading Loading
fs/gfs2/sys.c +6 −4 Original line number Diff line number Diff line Loading @@ -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)) Loading @@ -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)) Loading @@ -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) Loading