提交 3218a3ec 编写于 作者: E Eric Sandeen 提交者: Dave Chinner

quota: remove unused cmd argument from quota_quotaon()

The cmd argument to quota_quotaon() via Q_QUOTAON quotactl
is not used, so remove it.
Signed-off-by: NEric Sandeen <sandeen@redhat.com>
Reviewed-by: NJan Kara <jack@suse.cz>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 36f90b0a
...@@ -79,7 +79,7 @@ unsigned int qtype_enforce_flag(int type) ...@@ -79,7 +79,7 @@ unsigned int qtype_enforce_flag(int type)
return 0; return 0;
} }
static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, static int quota_quotaon(struct super_block *sb, int type, qid_t id,
struct path *path) struct path *path)
{ {
if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable) if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable)
...@@ -659,7 +659,7 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, ...@@ -659,7 +659,7 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id,
switch (cmd) { switch (cmd) {
case Q_QUOTAON: case Q_QUOTAON:
return quota_quotaon(sb, type, cmd, id, path); return quota_quotaon(sb, type, id, path);
case Q_QUOTAOFF: case Q_QUOTAOFF:
return quota_quotaoff(sb, type); return quota_quotaoff(sb, type);
case Q_GETFMT: case Q_GETFMT:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册