xfs: fix number of records handling in xfs_iext_split_leaf
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Nov 2017 17:11:41 +0000 (09:11 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 22:08:53 +0000 (14:08 -0800)
commit43d193aa0212691254d574b8d207609ef22018b8
tree4e1e44aa97d2f1934536fac260d238796cdef322
parent478f8da0f7c95f847a02f8e3b808926c894e3830
xfs: fix number of records handling in xfs_iext_split_leaf

Fix to check the correct value, and remove a duplicate handling of the
uneven record number split algorith,

Reported-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_iext_tree.c