diff options
author | Jeff Mahoney <jeffm@suse.com> | 2015-06-03 16:55:48 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-15 19:22:28 +0100 |
commit | 95617d69326ce386c95e33db7aeb832b45ee9f8f (patch) | |
tree | 58b636c69bee4179da9b70fe66d448cf3605c1f0 /fs/btrfs/extent_map.c | |
parent | btrfs: use list_for_each_entry* in backref.c (diff) | |
download | linux-95617d69326ce386c95e33db7aeb832b45ee9f8f.tar.xz linux-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_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 6a98bddd8f33..84fb56d5c018 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -76,7 +76,7 @@ void free_extent_map(struct extent_map *em) WARN_ON(extent_map_in_tree(em)); WARN_ON(!list_empty(&em->list)); if (test_bit(EXTENT_FLAG_FS_MAPPING, &em->flags)) - kfree(em->bdev); + kfree(em->map_lookup); kmem_cache_free(extent_map_cache, em); } } |