From: Steven Whitehouse <swhiteho@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: jack@suse.cz, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 2/3] quota: unify ->get_dqblk
Date: Wed, 05 May 2010 14:52:54 +0100 [thread overview]
Message-ID: <1273067574.7196.388.camel@localhost.localdomain> (raw)
In-Reply-To: <20100505104021.693053400@bombadil.infradead.org>
Hi,
On Wed, 2010-05-05 at 06:39 -0400, Christoph Hellwig wrote:
> plain text document attachment (quota-common-get_dqblk)
> Pass the larger struct fs_disk_quota to the ->get_dqblk operation so
> that the Q_GETQUOTA and Q_XGETQUOTA operations can be implemented
> with a single filesystem operation and we can retire the ->get_xquota
> operation. The additional information (RT-subvolume accounting and
> warn counts) are left zero for the VFS quota implementation.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> Index: linux-2.6/fs/quota/quota.c
> ===================================================================
> --- linux-2.6.orig/fs/quota/quota.c 2010-05-05 11:57:38.000000000 +0200
> +++ linux-2.6/fs/quota/quota.c 2010-05-05 11:58:46.681263382 +0200
> @@ -136,19 +136,32 @@ static int quota_setinfo(struct super_bl
> return sb->s_qcop->set_info(sb, type, &info);
> }
>
> +static void copy_to_if_dqblk(struct if_dqblk *dst, struct fs_disk_quota *src)
> +{
> + dst->dqb_bhardlimit = src->d_blk_hardlimit;
> + dst->dqb_bsoftlimit = src->d_blk_softlimit;
> + dst->dqb_curspace = src->d_bcount;
> + dst->dqb_ihardlimit = src->d_ino_hardlimit;
> + dst->dqb_isoftlimit = src->d_ino_softlimit;
> + dst->dqb_curinodes = src->d_icount;
> + dst->dqb_btime = src->d_btimer;
> + dst->dqb_itime = src->d_itimer;
> + dst->dqb_valid = QIF_ALL;
Do the fields needs to be individually marked as valid according to what
is supported by a filesystem or can we always assume that a zero value
means unknown/unsupported?
Otherwise it looks good to me,
Steve.
next prev parent reply other threads:[~2010-05-05 13:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 10:39 [PATCH 0/3] start the quota unification Christoph Hellwig
2010-05-05 10:39 ` [PATCH 1/3] cifs: drop quota operation stubs Christoph Hellwig
2010-05-05 15:34 ` Jan Kara
2010-05-05 18:57 ` Steve French
2010-05-06 11:47 ` Jeff Layton
2010-05-05 10:39 ` [PATCH 2/3] quota: unify ->get_dqblk Christoph Hellwig
2010-05-05 13:52 ` Steven Whitehouse [this message]
2010-05-05 16:18 ` Christoph Hellwig
2010-05-05 16:00 ` Jan Kara
2010-05-05 16:20 ` Christoph Hellwig
2010-05-06 21:04 ` [PATCH 2/3 v2] " Christoph Hellwig
2010-05-05 10:39 ` [PATCH 3/3] quota: unify ->set_dqblk Christoph Hellwig
2010-05-05 16:09 ` Jan Kara
2010-05-05 16:21 ` Christoph Hellwig
2010-05-06 21:05 ` [PATCH 3/3 v2] " Christoph Hellwig
2010-05-07 16:35 ` [PATCH 4/3] quota: remove sb_has_quota_active in get/set_info Christoph Hellwig
2010-05-11 8:33 ` 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=1273067574.7196.388.camel@localhost.localdomain \
--to=swhiteho@redhat.com \
--cc=hch@infradead.org \
--cc=jack@suse.cz \
--cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).