Message ID | 1453487136-12681-2-git-send-email-sandeen@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri 22-01-16 12:25:30, Eric Sandeen wrote: > The cmd argument to quota_quotaon() via Q_QUOTAON quotactl > is not used, so remove it. > > Signed-off-by: Eric Sandeen <sandeen@redhat.com> Looks good. You can add: Reviewed-by: Jan Kara <jack@suse.cz> Honza > --- > fs/quota/quota.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/quota/quota.c b/fs/quota/quota.c > index 3746367..ea66670 100644 > --- a/fs/quota/quota.c > +++ b/fs/quota/quota.c > @@ -79,7 +79,7 @@ unsigned int qtype_enforce_flag(int type) > 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) > { > 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, > > switch (cmd) { > case Q_QUOTAON: > - return quota_quotaon(sb, type, cmd, id, path); > + return quota_quotaon(sb, type, id, path); > case Q_QUOTAOFF: > return quota_quotaoff(sb, type); > case Q_GETFMT: > -- > 1.7.1 >
On Mon 25-01-16 15:47:02, Jan Kara wrote: > On Fri 22-01-16 12:25:30, Eric Sandeen wrote: > > The cmd argument to quota_quotaon() via Q_QUOTAON quotactl > > is not used, so remove it. > > > > Signed-off-by: Eric Sandeen <sandeen@redhat.com> > > Looks good. You can add: > > Reviewed-by: Jan Kara <jack@suse.cz> Ah, I'm in a reviewe mode... ;) I'll just take this patch to my tree. Honza > > --- > > fs/quota/quota.c | 4 ++-- > > 1 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/fs/quota/quota.c b/fs/quota/quota.c > > index 3746367..ea66670 100644 > > --- a/fs/quota/quota.c > > +++ b/fs/quota/quota.c > > @@ -79,7 +79,7 @@ unsigned int qtype_enforce_flag(int type) > > 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) > > { > > 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, > > > > switch (cmd) { > > case Q_QUOTAON: > > - return quota_quotaon(sb, type, cmd, id, path); > > + return quota_quotaon(sb, type, id, path); > > case Q_QUOTAOFF: > > return quota_quotaoff(sb, type); > > case Q_GETFMT: > > -- > > 1.7.1 > > > -- > Jan Kara <jack@suse.com> > SUSE Labs, CR
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index 3746367..ea66670 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c @@ -79,7 +79,7 @@ unsigned int qtype_enforce_flag(int type) 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) { 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, switch (cmd) { case Q_QUOTAON: - return quota_quotaon(sb, type, cmd, id, path); + return quota_quotaon(sb, type, id, path); case Q_QUOTAOFF: return quota_quotaoff(sb, type); case Q_GETFMT:
The cmd argument to quota_quotaon() via Q_QUOTAON quotactl is not used, so remove it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> --- fs/quota/quota.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)