summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorTimofey Titovets <nefelim4ag@gmail.com>2017-06-06 14:41:15 +0300
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:26:04 +0200
commit170607ebd9c891d6765445434460065b2e73ca51 (patch)
tree60ecb74a023eb3fc8cf5b4d1bb7f4062fb009941 /fs/btrfs/disk-io.c
parentc5e4c3d7503453832444475641988ffa02b88b6d (diff)
downloadlwn-170607ebd9c891d6765445434460065b2e73ca51.tar.gz
lwn-170607ebd9c891d6765445434460065b2e73ca51.zip
Btrfs: compression must free at least one sector size
We already skip storing data where compression does not make the result at least one byte less. Let's make the logic better and check that compression frees at least one sector size of bytes, otherwise it's not that useful. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> [ changelog updated ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions