summaryrefslogtreecommitdiffstats
path: root/fs/anon_inodes.c
diff options
context:
space:
mode:
authorAlex Lyakas2016-03-10 12:10:15 +0100
committerDavid Sterba2016-03-22 10:08:12 +0100
commit0f805531daa2ebfb5706422dc2ead1cff9e53e65 (patch)
tree67ac073abecb56e21a03d7ec45043578984a6cba /fs/anon_inodes.c
parentbtrfs: csum_tree_block: return proper errno value (diff)
downloadkernel-qcow2-linux-0f805531daa2ebfb5706422dc2ead1cff9e53e65.tar.gz
kernel-qcow2-linux-0f805531daa2ebfb5706422dc2ead1cff9e53e65.tar.xz
kernel-qcow2-linux-0f805531daa2ebfb5706422dc2ead1cff9e53e65.zip
btrfs: do not write corrupted metadata blocks to disk
csum_dirty_buffer was issuing a warning in case the extent buffer did not look alright, but was still returning success. Let's return error in this case, and also add an additional sanity check on the extent buffer header. The caller up the chain may BUG_ON on this, for example flush_epd_write_bio will, but it is better than to have a silent metadata corruption on disk. Signed-off-by: Alex Lyakas <alex@zadarastorage.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/anon_inodes.c')
0 files changed, 0 insertions, 0 deletions