| To: | Jan Kara <jack@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 02/17] quota: Wire up ->quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF} |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Mon, 19 Jan 2015 01:01:21 -0800 |
| Cc: | linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, cluster-devel@xxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1421412471-4747-3-git-send-email-jack@xxxxxxx> |
| References: | <1421412471-4747-1-git-send-email-jack@xxxxxxx> <1421412471-4747-3-git-send-email-jack@xxxxxxx> |
| User-agent: | Mutt/1.5.23 (2014-03-12) |
On Fri, Jan 16, 2015 at 01:47:36PM +0100, Jan Kara wrote:
> Make Q_QUOTAON / Q_QUOTAOFF quotactl call ->quota_enable /
> ->quota_disable callback when provided. To match current behavior of
> ocfs2 & ext4 we make these quotactls turn on / off quota enforcement for
> appropriate quota type.
>
> Signed-off-by: Jan Kara <jack@xxxxxxx>
> ---
> fs/quota/quota.c | 31 +++++++++++++++++++++++++++----
> include/linux/quotaops.h | 2 ++
> 2 files changed, 29 insertions(+), 4 deletions(-)
>
> diff --git a/fs/quota/quota.c b/fs/quota/quota.c
> index 5b307e2b5719..748716ffee48 100644
> --- a/fs/quota/quota.c
> +++ b/fs/quota/quota.c
> @@ -66,18 +66,43 @@ static int quota_sync_all(int type)
> return ret;
> }
>
> +unsigned int qtype_limit_flag(int type)
> +{
> + switch (type) {
> + case USRQUOTA:
> + return FS_QUOTA_UDQ_ENFD;
> + case GRPQUOTA:
> + return FS_QUOTA_GDQ_ENFD;
> + case PRJQUOTA:
> + return FS_QUOTA_PDQ_ENFD;
> + }
> + return 0;
What's the limit_ in the name supposed to mean?
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
|
| Previous by Date: | Re: [PATCH 11/17] quota: Wire up Q_GETXSTATE and Q_GETXSTATV calls to work with ->get_state, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 12/17] xfs: Convert to using ->get_state callback, Christoph Hellwig |
| Previous by Thread: | [PATCH 02/17] quota: Wire up ->quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}, Jan Kara |
| Next by Thread: | Re: [PATCH 02/17] quota: Wire up ->quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}, Jan Kara |
| Indexes: | [Date] [Thread] [Top] [All Lists] |