]> 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)
commit90268a38b5643f8ed9751750d4c7a94c0f09f557
tree58b636c69bee4179da9b70fe66d448cf3605c1f0
parentf2dd5d6107b24a7484cd093dfb5f5530c4f8c557
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