]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51631b0a3265524b6c418aecf02e6ada2fec52fd
tree2745e636072f4e01263034a77bb434ee93afbb4d
parent8b351db35d3a6d04f47e37b310f723f1f19dfebf
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