Darrick J. Wong c1d22ae89c xfs: in btree_lshift, only allocate temporary cursor when needed
We only need the temporary cursor in _btree_lshift if we're shifting
in an overlapped btree.  Therefore, factor that into a single block
of code so we avoid unnecessary cursor duplication.

Also fix use of the wrong cursor when checking for corruption in
xfs_btree_rshift().

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2016-08-03 12:26:22 +10:00
..
2016-04-06 09:47:01 +10:00
2016-04-06 09:47:01 +10:00
2016-08-03 12:09:48 +10:00
2016-03-31 00:30:15 -04:00
2016-02-09 16:54:58 +11:00
2016-07-20 11:48:46 +10:00
2016-04-06 09:20:36 +10:00
2016-06-01 17:38:15 +10:00
2016-03-18 11:42:53 -04:00
2016-04-06 09:19:55 +10:00
2016-08-03 12:09:48 +10:00
2016-06-01 17:38:15 +10:00
2016-04-06 09:20:36 +10:00