]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix wrong skipping compression for an inode
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 17 Jul 2014 03:44:09 +0000 (11:44 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:36 +0000 (13:37 -0700)
commiteaf4f0d8e6194548983122522a5653df338b90d3
treea99824b3fa7f9151f0b46a613b3a882c47856ab2
parent6b6744b17675a99edeb45ca67c6170bfa20742a3
Btrfs: fix wrong skipping compression for an inode

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.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c