]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff0718ad4c88c816667c4402455bcfdb4750a48e
tree58b636c69bee4179da9b70fe66d448cf3605c1f0
parentc46222865b6dc1beec2bb4ca183a4577f9922b9d
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