From: Brian Foster <bfoster@redhat.com>
To: Masatake YAMATO <yamato@redhat.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH v2] xfs: send warning of project quota to userspace via netlink
Date: Thu, 26 Nov 2015 08:49:33 -0500 [thread overview]
Message-ID: <20151126134933.GA39911@bfoster.bfoster> (raw)
In-Reply-To: <1448504560-25151-1-git-send-email-yamato@redhat.com>
On Thu, Nov 26, 2015 at 11:22:39AM +0900, Masatake YAMATO wrote:
> Linux's quota subsystem has an ability to handle
> project quota. This commit just utilizes the ability
> from xfs side.
>
...
> Changes in v2:
>
> a couple aesthetic things suggested by Brian Foster <bfoster@redhat.com>.
> * rename local vairable for aligning the parameter names,
> * move a short line to the end of its previous line.
>
> Signed-off-by: Masatake YAMATO <yamato@redhat.com>
> ---
Thanks for all of the test information. Now you have a really long
commit log description rather than a short one. ;) Maybe Dave can
truncate it. Regardless, looks fine to me:
Reviewed-by: Brian Foster <bfoster@redhat.com>
> fs/xfs/xfs_trans_dquot.c | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
>
> diff --git a/fs/xfs/xfs_trans_dquot.c b/fs/xfs/xfs_trans_dquot.c
> index ce78534..9951701 100644
> --- a/fs/xfs/xfs_trans_dquot.c
> +++ b/fs/xfs/xfs_trans_dquot.c
> @@ -572,12 +572,16 @@ xfs_quota_warn(
> struct xfs_dquot *dqp,
> int type)
> {
> - /* no warnings for project quotas - we just return ENOSPC later */
> + enum quota_type qtype;
> +
> if (dqp->dq_flags & XFS_DQ_PROJ)
> - return;
> - quota_send_warning(make_kqid(&init_user_ns,
> - (dqp->dq_flags & XFS_DQ_USER) ?
> - USRQUOTA : GRPQUOTA,
> + qtype = PRJQUOTA;
> + else if (dqp->dq_flags & XFS_DQ_USER)
> + qtype = USRQUOTA;
> + else
> + qtype = GRPQUOTA;
> +
> + quota_send_warning(make_kqid(&init_user_ns, qtype,
> be32_to_cpu(dqp->q_core.d_id)),
> mp->m_super->s_dev, type);
> }
> --
> 2.5.0
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-11-26 13:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 8:52 [PATCH] xfs: send warning of project quota to userspace via netlink Masatake YAMATO
2015-11-25 18:54 ` Brian Foster
2015-11-26 2:22 ` [PATCH v2] " Masatake YAMATO
2015-11-26 13:49 ` Brian Foster [this message]
2015-12-17 2:09 ` Masatake YAMATO
2015-11-26 2:34 ` Masatake YAMATO
2015-11-26 2:34 ` Masatake YAMATO
2015-11-26 2:40 ` Masatake YAMATO
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=20151126134933.GA39911@bfoster.bfoster \
--to=bfoster@redhat.com \
--cc=xfs@oss.sgi.com \
--cc=yamato@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.