btrfs: add read-only check to sysfs handler of features
authorDavid Sterba <dsterba@suse.cz>
Fri, 23 Jan 2015 17:43:31 +0000 (18:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:54 +0000 (18:18 -0700)
commit296f8da334a009ea2ec8112c2a1ac318872eff87
treebf29f52a6a3fb46f2f5ebeaad3e64ab699ff184e
parent72de21b004d05eff15ca7315cd2be16b18fb20d2
btrfs: add read-only check to sysfs handler of features

commit ee6111386a1b304f8bf589d36810d53e3b27ee20 upstream.

We don't want to trigger the change on a read-only filesystem, similar
to what the label handler does.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/sysfs.c