xfs: improve busy extent sorting
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Feb 2017 22:07:57 +0000 (14:07 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Feb 2017 19:36:39 +0000 (11:36 -0800)
commit46694129816851cb323e4bcf2dc41482d8d6c19b
tree5555850ba16c4921005d8cab9f523158434be0de
parentebf55872616c7d4754db5a318591a72a8d5e6896
xfs: improve busy extent sorting

Sort busy extents by the full block number instead of just the AGNO so
that we can issue consecutive discard requests that the block layer could
merge (although we'll need additional block layer fixes for fast devices).

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_extent_busy.c