Btrfs: remove csum_bytes_left
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 25 May 2015 03:20:22 +0000 (11:20 +0800)
committerChris Mason <clm@fb.com>
Wed, 3 Jun 2015 11:03:06 +0000 (04:03 -0700)
commit0c304304feab8a576ed6ba6ec964255d00d2886e
tree16395772b4f084a490ebd44495ea3044e0910ce2
parent39c2d7faccc5ca5a1be682b01c0db5fafa8adeda
Btrfs: remove csum_bytes_left

After commit 8407f553268a
("Btrfs: fix data corruption after fast fsync and writeback error"),
during wait_ordered_extents(), we wait for ordered extent setting
BTRFS_ORDERED_IO_DONE or BTRFS_ORDERED_IOERR, at which point we've
already got checksum information, so we don't need to check
(csum_bytes_left == 0) in the whole logging path.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-log.c