Skip to content
  • David Sterba's avatar
    btrfs: get bdev directly from fs_devices in submit_extent_page · 429aebc0
    David Sterba authored
    This is preparatory patch to remove @bdev parameter from
    submit_extent_page. It can't be removed completely, because the cgroups
    need it for wbc when initializing the bio
        dereference bdev->bi_disk->queue
    The bdev pointer is the same as latest_bdev, thus no functional change.
    We can retrieve it from fs_devices that's reachable through several
    dereferences. The local variable shadows the parameter, but that's only
    Signed-off-by: default avatarDavid Sterba <>