btrfs: sysfs: introduce helper for syncing bits with sysfs files
authorDavid Sterba <dsterba@suse.com>
Thu, 21 Jan 2016 17:50:40 +0000 (18:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 21 Jan 2016 17:50:40 +0000 (18:50 +0100)
commit444e75169872f668eb890f19ec1f32dfc632e704
treefcc120a9b3ec12c3398908b9bb4491ef6cb3f603
parent3b5bb73bd88d1d90163c91e7cad50b12725dbb1c
btrfs: sysfs: introduce helper for syncing bits with sysfs files

The files under /sys/fs/UUID/features get out of sync with the actual
incompat bits set for the filesystem if they change after mount. We're
going to sync them and need a helper to do that.

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