summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode-map.c
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@gmail.com>2013-10-15 00:12:27 +0100
committerChris Mason <chris.mason@fusionio.com>2013-11-11 22:02:26 -0500
commite8b0d724d596f2ac1264ad830a04ef8e415be956 (patch)
treeffe440a82656dc8d50b4234d497e8db7a31d47e0 /fs/btrfs/inode-map.c
parente93ae26fe1123e9077e79cc7af8a0d42adf4812f (diff)
downloadlinux-e8b0d724d596f2ac1264ad830a04ef8e415be956.tar.gz
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>
Diffstat (limited to 'fs/btrfs/inode-map.c')
0 files changed, 0 insertions, 0 deletions