btrfs: remove unused function btrfs_dev_extent_chunk_tree_uuid
authorYueHaibing <yuehaibing@huawei.com>
Sat, 9 May 2020 11:22:43 +0000 (19:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:29 +0000 (11:25 +0200)
There's no callers in-tree anymore since
commit d24ee97b96db ("btrfs: use new helpers to set uuids in eb")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h

index 03ea7370aea7c99c6639b8c41e18d5037a2b8865..0b78ab0213bb9f39c497a5449796b0503a9706b7 100644 (file)
@@ -1643,13 +1643,6 @@ BTRFS_SETGET_FUNCS(dev_extent_chunk_objectid, struct btrfs_dev_extent,
 BTRFS_SETGET_FUNCS(dev_extent_chunk_offset, struct btrfs_dev_extent,
                   chunk_offset, 64);
 BTRFS_SETGET_FUNCS(dev_extent_length, struct btrfs_dev_extent, length, 64);
-
-static inline unsigned long btrfs_dev_extent_chunk_tree_uuid(struct btrfs_dev_extent *dev)
-{
-       unsigned long ptr = offsetof(struct btrfs_dev_extent, chunk_tree_uuid);
-       return (unsigned long)dev + ptr;
-}
-
 BTRFS_SETGET_FUNCS(extent_refs, struct btrfs_extent_item, refs, 64);
 BTRFS_SETGET_FUNCS(extent_generation, struct btrfs_extent_item,
                   generation, 64);