• Dave Chinner's avatar
    xfs: break up xfs_buf_find() into individual pieces · de67dc57
    Dave Chinner authored
    xfs_buf_find() is made up of three main parts: lookup, insert and
    locking. The interactions with xfs_buf_get_map() require it to be
    called twice - once for a pure lookup, and again on lookup failure
    so the insert path can be run. We want to simplify this down a lot,
    so split it into a fast path lookup, a slow path insert and a "lock
    the found buffer" helper. This will then let us integrate these
    operations more effectively into xfs_buf_get_map() in future
    patches.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    de67dc57
xfs_buf.c 58.1 KB