diff options
| author | Nikolay Borisov <[email protected]> | 2018-01-08 08:59:43 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-03-01 15:16:00 +0000 |
| commit | ac01f26a27f10aace4bb89fd2c2c05a60c251832 (patch) | |
| tree | ec27915237f6e7ad42d31193b175d9bff0d5a036 /arch/m32r/include/asm/assembler.h | |
| parent | btrfs: use kvzalloc to allocate btrfs_fs_info (diff) | |
| download | kernel-ac01f26a27f10aace4bb89fd2c2c05a60c251832.tar.gz kernel-ac01f26a27f10aace4bb89fd2c2c05a60c251832.zip | |
btrfs: handle failure of add_pending_csums
add_pending_csums was added as part of the new data=ordered
implementation in e6dcd2dc9c48 ("Btrfs: New data=ordered
implementation"). Even back then it called the btrfs_csum_file_blocks
which can fail but it never bothered handling the failure. In ENOMEM
situation this could lead to the filesystem failing to write the
checksums for a particular extent and not detect this. On read this
could lead to the filesystem erroring out due to crc mismatch. Fix it by
propagating failure from add_pending_csums and handling them.
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'arch/m32r/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions
