summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/btrfs_inode.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-07-17 19:17:20 +0200
committerDavid Sterba <dsterba@suse.com>2017-08-16 16:12:05 +0200
commitb52aa8c93e1fec97fcd87345b13f532f0dee8239 (patch)
tree3d5cbb93ef75de3b7e920d5d608db61c3d621d74 /fs/btrfs/btrfs_inode.h
parentc2fcdcdf36bba08c5d2fbf4f17c2d8a944bfd4df (diff)
downloadlinux-stable-b52aa8c93e1fec97fcd87345b13f532f0dee8239.tar.gz
linux-stable-b52aa8c93e1fec97fcd87345b13f532f0dee8239.tar.bz2
linux-stable-b52aa8c93e1fec97fcd87345b13f532f0dee8239.zip
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.h4
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;