Message ID | 20110215233526.GA6726@free (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index fb9bd78..46125c3 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -467,11 +467,10 @@ again: */ total_in = (total_in + PAGE_CACHE_SIZE - 1) & ~(PAGE_CACHE_SIZE - 1); - if (total_compressed >= total_in) { + if (total_compressed >= total_in) will_compress = 0; - } else { + else num_bytes = total_in; - } } if (!will_compress && pages) { /*