summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-cluster.h
diff options
context:
space:
mode:
authorVinothkumar Raja2017-04-07 04:09:38 +0200
committerMike Snitzer2017-04-24 20:47:49 +0200
commit7d1fedb6e96a960aa91e4ff70714c3fb09195a5a (patch)
tree05e10eb320014e8e5f98083343bd9135eb18ff28 /drivers/md/md-cluster.h
parentdm ioctl: remove double parentheses (diff)
downloadkernel-qcow2-linux-7d1fedb6e96a960aa91e4ff70714c3fb09195a5a.tar.gz
kernel-qcow2-linux-7d1fedb6e96a960aa91e4ff70714c3fb09195a5a.tar.xz
kernel-qcow2-linux-7d1fedb6e96a960aa91e4ff70714c3fb09195a5a.zip
dm btree: fix for dm_btree_find_lowest_key()
dm_btree_find_lowest_key() is giving incorrect results. find_key() traverses the btree correctly for finding the highest key, but there is an error in the way it traverses the btree for retrieving the lowest key. dm_btree_find_lowest_key() fetches the first key of the rightmost block of the btree instead of fetching the first key from the leftmost block. Fix this by conditionally passing the correct parameter to value64() based on the @find_highest flag. Cc: stable@vger.kernel.org Signed-off-by: Erez Zadok <ezk@fsl.cs.sunysb.edu> Signed-off-by: Vinothkumar Raja <vinraja@cs.stonybrook.edu> Signed-off-by: Nidhi Panpalia <npanpalia@cs.stonybrook.edu> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/md-cluster.h')
0 files changed, 0 insertions, 0 deletions