xfs: refactor eofb matching into a single helper
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 May 2020 20:08:48 +0000 (13:08 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 May 2020 15:49:27 +0000 (08:49 -0700)
commita91bf9928e1e16dd175ff363efa54ebc9e38d53d
tree5043d649a2d8a66a5b2eac52aafeb7bce430dddc
parent8921a0fda54adf0a45ef15a9507594829e4ec6f5
xfs: refactor eofb matching into a single helper

Refactor the two eofb-matching logics into a single helper so that we
don't repeat ourselves.

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