summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-08-30 15:40:53 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 23:43:44 +0100
commita019e9e197eaa68ffe2efeba00d685581b1a5416 (patch)
treec1d8501226c2f4663b90328310cdb802c7857a57 /fs/btrfs/file-item.c
parentbtrfs: drop bio_set_dev where not needed (diff)
downloadlinux-a019e9e197eaa68ffe2efeba00d685581b1a5416.tar.xz
linux-a019e9e197eaa68ffe2efeba00d685581b1a5416.zip
btrfs: remove extent_map::bdev
We can now remove the bdev from extent_map. Previous patches made sure that bio_set_dev is correctly in all places and that we don't need to grab it from latest_bdev or pass it around inside the extent map. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r--fs/btrfs/file-item.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index 1a599f50837b..3270a40b0777 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -945,7 +945,6 @@ void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode,
u8 type = btrfs_file_extent_type(leaf, fi);
int compress_type = btrfs_file_extent_compression(leaf, fi);
- em->bdev = fs_info->fs_devices->latest_bdev;
btrfs_item_key_to_cpu(leaf, &key, slot);
extent_start = key.offset;