btrfs: cleanup, stop casting for extent_map->lookup everywhere
commit67405a1e780c38b54c980a47f1cd5d9b633a60f2
authorJeff Mahoney <jeffm@suse.com>
Wed, 3 Jun 2015 14:55:48 +0000 (3 10:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2019 21:16:06 +0000 (16 22:16 +0100)
treee03eb97074c78c6f5029f8523f13574fc2b9b0b2
parentfea03efa24d48514be94e93affae6d0ae8ab3edb
btrfs: cleanup, stop casting for extent_map->lookup everywhere

commit 95617d69326ce386c95e33db7aeb832b45ee9f8f upstream.

Overloading extent_map->bdev to struct map_lookup * might have started out
as a means to an end, but it's a pattern that's used all over the place
now. Let's get rid of the casting and just add a union instead.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/dev-replace.c
fs/btrfs/extent-tree.c
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c