btrfs: cleanup, stop casting for extent_map->lookup everywhere
authorJeff Mahoney <jeffm@suse.com>
Wed, 3 Jun 2015 14:55:48 +0000 (10:55 -0400)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Jan 2016 18:22:28 +0000 (19:22 +0100)
commit95617d69326ce386c95e33db7aeb832b45ee9f8f
tree58b636c69bee4179da9b70fe66d448cf3605c1f0
parenta7ca42256d9fad572fb7f2c471514d7d3572b1db
btrfs: cleanup, stop casting for extent_map->lookup everywhere

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>
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