Btrfs: fall into nocompression codes quickly if possible
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 17 Jul 2014 03:44:10 +0000 (11:44 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:38 +0000 (13:37 -0700)
commit7816030eb48e00a36ecdc23d484b960922feee67
tree5c3146946fc4935281c3a3a27971ea1d08a0639a
parentf79707b092caff665a8a77e8e31fe4ab18b4d109
Btrfs: fall into nocompression codes quickly if possible

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.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c