Re: [PATCH] btrfs: cleanup, stop casting for extent_map->lookup everywhere

2015-06-05 Thread David Sterba
On Wed, Jun 03, 2015 at 10:55:48AM -0400, je...@suse.com wrote: > From: Jeff Mahoney > > 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 in

[PATCH] btrfs: cleanup, stop casting for extent_map->lookup everywhere

2015-06-03 Thread jeffm
From: Jeff Mahoney 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 --- fs/btrfs/dev-replace.c | 2 +-