xfs: merge xfs_buf_find() and xfs_buf_get_map()
authorDave Chinner <dchinner@redhat.com>
Thu, 14 Jul 2022 02:04:31 +0000 (12:04 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 14 Jul 2022 02:04:31 +0000 (12:04 +1000)
commit348000804a0f4dea74219a927e081d6e7dee792f
treecdb6317df3455453cc434a7d4b064ab3162119a1
parentde67dc575434dca8d60b1e181ed5dd296392ffce
xfs: merge xfs_buf_find() and xfs_buf_get_map()

Now that we factored xfs_buf_find(), we can start separating into
distinct fast and slow paths from xfs_buf_get_map(). We start by
moving the lookup map and perag setup to _get_map(), and then move
all the specifics of the fast path lookup into xfs_buf_lookup()
and call it directly from _get_map(). We the move all the slow path
code to xfs_buf_find_insert(), which is now also called directly
from _get_map(). As such, xfs_buf_find() now goes away.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_buf.c