]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: clean_tree_block should panic on observed memory corruption and return void
authorJeff Mahoney <jeffm@suse.com>
Thu, 1 Mar 2012 13:56:27 +0000 (14:56 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:31 +0000 (01:45 +0100)
commitfc51ee407e3dd0530ee02ef93e742ba0059dbb64
tree4725c8b83309fa8431fea85bf9acc99b8e015291
parent204356058d7efb4c49c6994dbd52a6f987fb0d93
btrfs: clean_tree_block should panic on observed memory corruption and return void

 The only error condition in clean_tree_block is an accounting bug.
 Returning without modifying dirty_metadata_bytes and as if the cleaning
 as been performed may cause problems later so it should panic instead.

 It should probably be a BUG_ON but we have btrfs_panic now.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h