Btrfs: Fix logic to avoid reading checksums for -o nodatasum,compress
authorChris Mason <chris.mason@oracle.com>
Thu, 30 Oct 2008 18:23:13 +0000 (14:23 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 30 Oct 2008 18:23:13 +0000 (14:23 -0400)
commit19b9bdb054895ba07086f0264641c9f80e0eb2c4
tree8cacc7e2fc9f1a84e975b2e9c193ef9b2d7fbcf7
parentcfbc246eaae2a1089911016094b74b3055e8a906
Btrfs: Fix logic to avoid reading checksums for -o nodatasum,compress

When compression was on, we were improperly ignoring -o nodatasum.  This
reworks the logic a bit to properly honor all the flags.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c