From: Jan Kara <jack@suse.cz>
To: Jeremy Cline <jcline@redhat.com>
Cc: Jan Kara <jack@suse.com>,
linux-kernel@vger.kernel.org,
Josh Poimboeuf <jpoimboe@redhat.com>
Subject: Re: [PATCH 1/2] fs/quota: Replace XQM_MAXQUOTAS usage with MAXQUOTAS
Date: Wed, 22 Aug 2018 18:17:41 +0200 [thread overview]
Message-ID: <20180822161741.GA2559@quack2.suse.cz> (raw)
In-Reply-To: <20180822160551.GE23037@quack2.suse.cz>
On Wed 22-08-18 18:05:51, Jan Kara wrote:
> On Tue 31-07-18 01:37:30, Jeremy Cline wrote:
> > XQM_MAXQUOTAS and MAXQUOTAS are, it appears, equivalent. Replace all
> > usage of XQM_MAXQUOTAS and remove it along with the unused XQM_*QUOTA
> > definitions.
> >
> > Signed-off-by: Jeremy Cline <jcline@redhat.com>
>
> Thanks for the cleanup. The patch looks good, just one small nit:
>
> > diff --git a/include/uapi/linux/dqblk_xfs.h b/include/uapi/linux/dqblk_xfs.h
> > index 03d890b80ebc..a5846cde8272 100644
> > --- a/include/uapi/linux/dqblk_xfs.h
> > +++ b/include/uapi/linux/dqblk_xfs.h
> > @@ -27,11 +27,6 @@
> > #define XQM_CMD(x) (('X'<<8)+(x)) /* note: forms first QCMD argument */
> > #define XQM_COMMAND(x) (((x) & (0xff<<8)) == ('X'<<8)) /* test if for XFS */
>
> You can delete XQM_COMMAND() as well here.
>
> > -#define XQM_USRQUOTA 0 /* system call user quota type */
> > -#define XQM_GRPQUOTA 1 /* system call group quota type */
> > -#define XQM_PRJQUOTA 2 /* system call project quota type */
> > -#define XQM_MAXQUOTAS 3
> > -
Oh, now I've realized that these are actually from uapi header. I don't
think it's worth to break existing userspace sources just for a sake of
this small cleanup. So I'll just remove this hunk from the patch.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
next prev parent reply other threads:[~2018-08-22 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-31 1:37 [PATCH 0/2] fs/quota: Fix potential spectre v1 gadgets Jeremy Cline
2018-07-31 1:37 ` [PATCH 1/2] fs/quota: Replace XQM_MAXQUOTAS usage with MAXQUOTAS Jeremy Cline
2018-08-22 16:05 ` Jan Kara
2018-08-22 16:17 ` Jan Kara [this message]
2018-07-31 1:37 ` [PATCH 2/2] fs/quota: Fix spectre gadget in do_quotactl Jeremy Cline
2018-08-22 16:08 ` Jan Kara
2018-07-31 18:43 ` [PATCH 0/2] fs/quota: Fix potential spectre v1 gadgets Josh Poimboeuf
2018-08-22 16:12 ` Jan Kara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180822161741.GA2559@quack2.suse.cz \
--to=jack@suse.cz \
--cc=jack@suse.com \
--cc=jcline@redhat.com \
--cc=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome