diff options
author | Jeff Mahoney <jeffm@suse.com> | 2015-06-03 10:55:48 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-15 19:22:28 +0100 |
commit | 95617d69326ce386c95e33db7aeb832b45ee9f8f (patch) | |
tree | 58b636c69bee4179da9b70fe66d448cf3605c1f0 /fs/btrfs/extent-tree.c | |
parent | a7ca42256d9fad572fb7f2c471514d7d3572b1db (diff) | |
download | lwn-95617d69326ce386c95e33db7aeb832b45ee9f8f.tar.gz lwn-95617d69326ce386c95e33db7aeb832b45ee9f8f.zip |
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>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1ea56d8bfd3e..8c912894a5bd 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -10322,7 +10322,7 @@ btrfs_start_trans_remove_block_group(struct btrfs_fs_info *fs_info, * more device items and remove one chunk item), but this is done at * btrfs_remove_chunk() through a call to check_system_chunk(). */ - map = (struct map_lookup *)em->bdev; + map = em->map_lookup; num_items = 3 + map->num_stripes; free_extent_map(em); |