diff options
author | David Sterba <dsterba@suse.com> | 2017-07-17 19:17:20 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-16 16:12:05 +0200 |
commit | b52aa8c93e1fec97fcd87345b13f532f0dee8239 (patch) | |
tree | 3d5cbb93ef75de3b7e920d5d608db61c3d621d74 /fs/btrfs/btrfs_inode.h | |
parent | c2fcdcdf36bba08c5d2fbf4f17c2d8a944bfd4df (diff) | |
download | linux-next-b52aa8c93e1fec97fcd87345b13f532f0dee8239.tar.gz |
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>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 31c259c8462d..fa118036a84e 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -179,9 +179,9 @@ struct btrfs_inode { unsigned reserved_extents; /* - * always compress this one file + * Cached values of inode properties */ - unsigned force_compress; + unsigned prop_compress; /* per-file compression algorithm */ struct btrfs_delayed_node *delayed_node; |