Btrfs: check the nodatasum flag when writing compressed files
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 14 Jul 2011 03:16:47 +0000 (03:16 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:46 +0000 (14:30 -0400)
If mounting with nodatasum option, we won't csum file data for
general write or direct-io write, and this rule should also be
applied when writing compressed files.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/compression.c

Simple merge