Home
last modified time | relevance | path

Searched hist:e8b0d724d596f2ac1264ad830a04ef8e415be956 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dctree.cdiff e8b0d724d596f2ac1264ad830a04ef8e415be956 Mon Oct 14 18:12:27 CDT 2013 Filipe David Borba Manana <fdmanana@gmail.com> 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 <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>