]> git.karo-electronics.de Git - mv-sheeva.git/commit
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)
commite55179b3d7d41d83fd6b5f59325f4a8d8ac9700a
tree9f8ec3e2ec88e63b1772418ba6699b808e53fad3
parent77906a5075a4eb767026c2e07b1a412d08aea5be
Btrfs: check the nodatasum flag when writing compressed files

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