xfs: fix some key handling problems in _btree_simple_query_range
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Aug 2016 05:59:50 +0000 (15:59 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 26 Aug 2016 05:59:50 +0000 (15:59 +1000)
commit722278997bc964349e23e7061d541f8df3133a04
tree0efa953e0bf26f58c248dd5babe68a5f19004d56
parentda1f039d6947b1a49f13b39a6de0df2a3e9e1ed1
xfs: fix some key handling problems in _btree_simple_query_range

We only need the record's high key for the first record that we look
at; for all records, we /definitely/ need the regular record key.
Therefore, fix how the simple range query function gets its keys.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_btree.c