diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ef3915666ebfd2e910d7f9e7a90215cb11fe9c8f..6274be64f4c555026e4afd00dbbe2613105aa21c 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -570,7 +570,7 @@ static noinline void compress_file_range(struct inode *inode, 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. */