• Arne Jansen's avatar
    btrfs: using cached extent_state in set/unlock combinations · 507903b8
    Arne Jansen authored
    In several places the sequence (set_extent_uptodate, unlock_extent) is used.
    This leads to a duplicate lookup of the extent state. This patch lets
    set_extent_uptodate return a cached extent_state which can be passed to
    unlock_extent_cached.
    The occurences of the above sequences are updated to use the cache. Only
    end_bio_extent_readpage is updated that it first gets a cached state to
    pass it to the readpage_end_io_hook as the prototype requested and is later
    on being used for set/unlock.
    Signed-off-by: default avatarArne Jansen <sensille@gmx.net>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    507903b8
extent_io.h 12.4 KB