]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename variable holding per-inode compression type
authorDavid Sterba <dsterba@suse.com>
Mon, 17 Jul 2017 17:17:20 +0000 (19:17 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:05 +0000 (16:12 +0200)
commit439e05d5b37f0a70a2d064416f6fd2d997d54554
tree3d5cbb93ef75de3b7e920d5d608db61c3d621d74
parentf9783a2db2130b69c3cca8e7a66d910ab847217e
btrfs: rename variable holding per-inode compression type

This is preparatory for separating inode compression requested by defrag
and set via properties. This will fix a usability bug when defrag will
reset compression type to NONE. If the file has compression set via
property, it will not apply anymore (until next mount or reset through
command line).

We're going to fix that by adding another variable just for the defrag
call and won't touch the property. The defrag will have higher priority
when deciding whether to compress the data.

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