btrfs: add write protection to SET_FEATURES ioctl
authorDavid Sterba <dsterba@suse.cz>
Wed, 4 May 2016 09:32:00 +0000 (11:32 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit7ab19625a911f7568ec85302e3aa7a64186006c8
tree2745e636072f4e01263034a77bb434ee93afbb4d
parent48b3b9d401ec86899a52003b37331190a35a81a6
btrfs: add write protection to SET_FEATURES ioctl

Perform the want_write check if we get far enough to do any writes.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c