From: Jan Kara <jack@suse.cz>
To: Andrew Perepechko <Andrew.Perepechko@Sun.COM>
Cc: Andreas Dilger <adilger@Sun.COM>,
linux-fsdevel@vger.kernel.org,
Johann Lombardi <Johann.Lombardi@Sun.COM>,
Zhiyong Landen tian <Zhiyong.Tian@Sun.COM>,
Alex Lyashkov <Alexey.Lyashkov@Sun.COM>
Subject: Re: [RFC] quota: 64-bit limits with vfs, updated
Date: Mon, 17 Mar 2008 15:51:14 +0100 [thread overview]
Message-ID: <20080317145114.GG17307@duck.suse.cz> (raw)
In-Reply-To: <0JXS005BBU0ZQO00@mail-amer.sun.com>
Hi,
On Sun 16-03-08 04:14:58, Andrew Perepechko wrote:
> > > struct mem_dqblk {
> > > - __u32 dqb_bhardlimit; /* absolute limit on disk blks alloc */
> > > - __u32 dqb_bsoftlimit; /* preferred limit on disk blks */
> > > + qsize_t dqb_bhardlimit; /* absolute limit on disk blks alloc */
> > > + qsize_t dqb_bsoftlimit; /* preferred limit on disk blks */
> > > qsize_t dqb_curspace; /* current used space */
> > > - __u32 dqb_ihardlimit; /* absolute limit on allocated inodes */
> > > - __u32 dqb_isoftlimit; /* preferred inode limit */
> > > - __u32 dqb_curinodes; /* current # allocated inodes */
> > > + qsize_t dqb_ihardlimit; /* absolute limit on allocated inodes */
> > > + qsize_t dqb_isoftlimit; /* preferred inode limit */
> > > + qsize_t dqb_curinodes; /* current # allocated inodes */
> > > time_t dqb_btime; /* time limit for excessive disk use */
> > > time_t dqb_itime; /* time limit for excessive inode use */
> > > };
> >
> > Is there a reason to use "qsize_t" instead of just using __u64 directly?
> >
>
> Well, I'm not sure if there's a special meaning for qsize_t. I have only followed
> the dqb_curspace convention, which is of qsize_t type. While I see no
> special usage for qsize_t (well, it looks more nice than __u64 :), I at the same time
> see no problems using qsize_t. Maybe Jan will tell us more about qsize_t.
Well, when designing these structures originally, I wanted to have one
clear type for holding quota space information and so I introduced qsize_t.
Speaking about it, logically we should have a similar type for "number of
inodes" (something like qcount_t) because there is no logical connection between
number of inodes and space... But I don't really care much.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2008-03-17 14:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 13:41 [RFC] quota: 64-bit limits with vfs Andrew Perepechko
2008-03-06 14:48 ` Jan Kara
2008-03-09 22:46 ` Andrew Perepechko
2008-03-10 16:26 ` Jan Kara
2008-03-10 17:13 ` Andrew Perepechko
2008-03-10 17:20 ` Jan Kara
2008-03-14 13:08 ` Andrew Perepechko
2008-03-15 4:23 ` Andreas Dilger
2008-03-15 13:24 ` Andrew Perepechko
2008-03-15 13:32 ` Andrew Perepechko
2008-03-15 14:45 ` Andreas Dilger
2008-03-15 18:58 ` [RFC] quota: 64-bit limits with vfs, updated Andrew Perepechko
2008-03-15 22:47 ` Andreas Dilger
2008-03-16 1:14 ` Andrew Perepechko
2008-03-16 11:21 ` Andrew Perepechko
2008-03-17 14:35 ` Jan Kara
2008-03-20 21:37 ` Andrew Perepechko
2008-03-21 1:04 ` Andreas Dilger
2008-03-21 9:14 ` Andrew Perepechko
2008-03-21 10:24 ` Andrew Perepechko
2008-03-17 14:51 ` Jan Kara [this message]
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=20080317145114.GG17307@duck.suse.cz \
--to=jack@suse.cz \
--cc=Alexey.Lyashkov@Sun.COM \
--cc=Andrew.Perepechko@Sun.COM \
--cc=Johann.Lombardi@Sun.COM \
--cc=Zhiyong.Tian@Sun.COM \
--cc=adilger@Sun.COM \
--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).