Re: [PATCH 1/6] Btrfs: fix wrong skipping compression for an inode

2014-07-24 Thread David Sterba
On Thu, Jul 17, 2014 at 11:44:09AM +0800, Wang Shilong wrote: If a file's compression ratios is bad, we will set NOCOMPRESS flag for it, and it will skip compression for that inode next time. However, if we remount fs to COMPRESS_FORCE, it still should try if we could compress pages for that

[PATCH 1/6] Btrfs: fix wrong skipping compression for an inode

2014-07-16 Thread Wang Shilong
If a file's compression ratios is bad, we will set NOCOMPRESS flag for it, and it will skip compression for that inode next time. However, if we remount fs to COMPRESS_FORCE, it still should try if we could compress pages for that inode, this patch fix wrong check for this problem.