diff options
| author | Filipe David Borba Manana <[email protected]> | 2013-10-15 00:12:27 +0100 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2013-11-11 22:02:26 -0500 |
| commit | e8b0d724d596f2ac1264ad830a04ef8e415be956 (patch) | |
| tree | ffe440a82656dc8d50b4234d497e8db7a31d47e0 /lib/cpu-notifier-error-inject.c | |
| parent | e93ae26fe1123e9077e79cc7af8a0d42adf4812f (diff) | |
Btrfs: fix btrfs_prev_leaf() previous key computation
If we decrement the key type, we must reset its offset to the largest
possible offset (u64)-1. If we decrement the key's objectid, then we
must reset the key's type and offset to their largest possible values,
(u8)-1 and (u64)-1 respectively. Not doing so can make us miss an
items in the tree.
Signed-off-by: Filipe David Borba Manana <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions