diff options
author | Timofey Titovets <nefelim4ag@gmail.com> | 2017-09-15 01:57:26 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 12:27:57 +0100 |
commit | 6018ba0a0e1bc2378bdab353958e2db1a3d253fc (patch) | |
tree | 2957a1b6f7574b49b8a89c8dbf9d00cd4ef5c788 /fs/btrfs/inode.c | |
parent | 996478ca9c460886ac147eb0d00e99841b71d31b (diff) | |
download | lwn-6018ba0a0e1bc2378bdab353958e2db1a3d253fc.tar.gz lwn-6018ba0a0e1bc2378bdab353958e2db1a3d253fc.zip |
Btrfs: cleanup 'start' subtraction from try uncompressed inline extent
Was added in:
c8b978188c9a0fd3d535c13debd19d522b726f1f
"Btrfs: Add zlib compression support"
Survive to near time (from 08.10.2008).
Because 'start' checked for zero before branch, so it's safe to remove
that subtraction.
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Reviewed-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ef3915666ebf..6274be64f4c5 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -570,7 +570,7 @@ again: cont: if (start == 0) { /* lets try to make an inline extent */ - if (ret || total_in < (actual_end - start)) { + if (ret || total_in < actual_end) { /* we didn't compress the entire range, try * to make an uncompressed inline extent. */ |