From: David Sterba <dsterba@suse.cz>
To: Jeff Mahoney <jeffm@suse.com>
Cc: Chris Mason <clmason@fusionio.com>,
linux-btrfs <linux-btrfs@vger.kernel.org>,
David Sterba <dsterba@suse.cz>
Subject: Re: [PATCH] btrfs: add ability to query/change feature bits online
Date: Mon, 9 Sep 2013 18:56:16 +0200 [thread overview]
Message-ID: <20130909165616.GS32382@twin.jikos.cz> (raw)
In-Reply-To: <521CFB62.7010600@suse.com>
On Tue, Aug 27, 2013 at 03:17:54PM -0400, Jeff Mahoney wrote:
> +static int btrfs_ioctl_add_features(struct file *file, void __user *arg)
> +{
...
spin_lock(&fs_info->super_lock);
> + flags = btrfs_super_compat_flags(super_block);
> + flags |= features.compat_flags;
> + btrfs_set_super_compat_flags(super_block, flags);
> +
> + flags = btrfs_super_compat_ro_flags(super_block);
> + flags |= features.compat_ro_flags;
> + btrfs_set_super_compat_ro_flags(super_block, flags);
> +
> + flags = btrfs_super_incompat_flags(super_block);
> + flags |= features.incompat_flags;
> + btrfs_set_super_incompat_flags(super_block, flags);
spin_unlock(&fs_info->super_lock);
> + return btrfs_end_transaction(trans, root);
> + }
> +
> + return 0;
> +}
prev parent reply other threads:[~2013-09-09 16:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 19:17 [PATCH] btrfs: add ability to query/change feature bits online Jeff Mahoney
2013-09-03 9:25 ` Stefan Behrens
2013-09-04 0:32 ` Jeff Mahoney
2013-09-09 16:56 ` David Sterba [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=20130909165616.GS32382@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=clmason@fusionio.com \
--cc=jeffm@suse.com \
--cc=linux-btrfs@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).