aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <[email protected]>2021-07-09 16:29:22 +0000
committerDavid Sterba <[email protected]>2021-07-28 16:59:23 +0000
commit240246f6b913b0c23733cfd2def1d283f8cc9bbe (patch)
tree71a8875c0b19504852d66d24173cce0fa20c35c0 /drivers/fpga/machxo2-spi.c
parentbtrfs: store a block_device in struct btrfs_ordered_extent (diff)
downloadkernel-240246f6b913b0c23733cfd2def1d283f8cc9bbe.tar.gz
kernel-240246f6b913b0c23733cfd2def1d283f8cc9bbe.zip
btrfs: mark compressed range uptodate only if all bio succeed
In compression write endio sequence, the range which the compressed_bio writes is marked as uptodate if the last bio of the compressed (sub)bios is completed successfully. There could be previous bio which may have failed which is recorded in cb->errors. Set the writeback range as uptodate only if cb->errors is zero, as opposed to checking only the last bio's status. Backporting notes: in all versions up to 4.4 the last argument is always replaced by "!cb->errors". CC: [email protected] # 4.4+ Signed-off-by: Goldwyn Rodrigues <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions