From: Andrew Price <anprice@redhat.com>
To: David Howells <dhowells@redhat.com>
Cc: cluster-devel@redhat.com, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 1/2] gfs2: Convert gfs2 to fs_context
Date: Mon, 18 Mar 2019 13:51:09 +0000 [thread overview]
Message-ID: <8b0534dc-0ee0-ba7f-8709-30433c04c5a7@redhat.com> (raw)
In-Reply-To: <28293.1552915099@warthog.procyon.org.uk>
On 18/03/2019 13:18, David Howells wrote:
> Andrew Price <anprice@redhat.com> wrote:
>
>> sget() is still used instead of sget_fc() as there doesn't seem to be an
>> obvious replacement for the bdev pointer propagation to the test/set
>> functions (yet?)
>
> Umm... What about the fs_context struct? Why can't that be used to propagate
> the bdev pointer? That's kind of what it's for...
It would be useful to have the block device pointer in the fs_context
since so many of the filesystems use them and it makes for an obvious
API migration.
> struct super_block *sget_fc(
> struct fs_context *fc,
> int (*test)(struct super_block *, struct fs_context *),
> int (*set)(struct super_block *, struct fs_context *))
>
> It looks like you should be able to stash the bdev pointer in the gfs2_args
> struct.
Sure, but since the new API is young I figured I'd hold off until we had
this conversation because adding it to the fs_context might be agreeable :)
>> + fsparam_s32 ("commit", Opt_commit),
>> + fsparam_s32 ("statfs_quantum", Opt_statfs_quantum),
>> + fsparam_s32 ("statfs_percent", Opt_statfs_percent),
>
> Why s32? Why not u32?
They were signed before, I guess because if the user passes a negative
number it allows us to range check properly and provide a sensible error
message. Is there an issue with them being s32 that I hadn't considered?
Thanks,
Andy
next prev parent reply other threads:[~2019-03-18 13:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-17 17:40 [PATCH 0/2] gfs2: Switch to the new mount API Andrew Price
2019-03-17 17:40 ` [PATCH 1/2] gfs2: Convert gfs2 to fs_context Andrew Price
2019-03-17 17:40 ` [PATCH 2/2] gfs2: Convert gfs2meta " Andrew Price
2019-03-18 9:56 ` [Cluster-devel] [PATCH 0/2] gfs2: Switch to the new mount API Steven Whitehouse
2019-03-18 13:18 ` [PATCH 1/2] gfs2: Convert gfs2 to fs_context David Howells
2019-03-18 13:51 ` Andrew Price [this message]
2019-03-18 23:01 ` David Howells
2019-03-19 13:38 ` Andrew Price
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=8b0534dc-0ee0-ba7f-8709-30433c04c5a7@redhat.com \
--to=anprice@redhat.com \
--cc=cluster-devel@redhat.com \
--cc=dhowells@redhat.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).