diff options
author | Filipe Manana <[email protected]> | 2019-02-20 11:11:43 +0000 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-02-25 14:19:23 +0100 |
commit | 253002f2e3f4e2bbb0cbdd9e9fe2f5b9ec88f694 (patch) | |
tree | b64bf4f94fe13788f18c5c02c3581309dcc150db /security/selinux/hooks.c | |
parent | cbca7d59fea4e81ee3bf724cf20018f96d53ccea (diff) |
Btrfs: remove assertion when searching for a key in a node/leaf
At ctree.c:key_search(), the assertion that verifies the first key on a
child extent buffer corresponds to the key at a specific slot in the
parent has a disadvantage: we effectively hit a BUG_ON() which requires
rebooting the machine later. It also does not tell any information about
which extent buffer is affected, from which root, the expected and found
keys, etc.
However as of commit 581c1760415c48 ("btrfs: Validate child tree block's
level and first key"), that assertion is not needed since at the time we
read an extent buffer from disk we validate that its first key matches the
key, at the respective slot, in the parent extent buffer. Therefore just
remove the assertion at key_search().
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions