Re: [PATCH 2/6] Btrfs: fall into nocompression codes quickly if possible

2014-07-24 Thread David Sterba
On Thu, Jul 17, 2014 at 11:44:10AM +0800, Wang Shilong wrote: If flag NOCOMPRESS is set which means bad compression ratio, we could avoid call cow_file_range_async() for this case earlier. Signed-off-by: Wang Shilong wangsl.f...@cn.fujitsu.com Reviewed-by: David Sterba dste...@suse.cz -- To

[PATCH 2/6] Btrfs: fall into nocompression codes quickly if possible

2014-07-16 Thread Wang Shilong
If flag NOCOMPRESS is set which means bad compression ratio, we could avoid call cow_file_range_async() for this case earlier. Signed-off-by: Wang Shilong wangsl.f...@cn.fujitsu.com --- fs/btrfs/inode.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/btrfs/inode.c