btrfs: sysfs: check initialization state before updating features
authorDavid Sterba <dsterba@suse.com>
Wed, 27 Jan 2016 13:06:29 +0000 (14:06 +0100)
committerChris Mason <clm@fb.com>
Wed, 27 Jan 2016 13:40:10 +0000 (05:40 -0800)
commitbf6092066f80840410e3401cd962b23d54a95713
tree0d2e6c360d15afc0ec04b488b682e9d8c99c7d17
parent80ad623edd2d0ccb47d85357ee31c97e6c684e82
btrfs: sysfs: check initialization state before updating features

If the mount phase is not finished, we can't update the sysfs files.

Reported-by: Chris Mason <clm@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/sysfs.c