diff mbox series

[-next] btrfs: Remove unused inline function btrfs_dev_extent_chunk_tree_uuid

Message ID 20200509112243.54176-1-yuehaibing@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] btrfs: Remove unused inline function btrfs_dev_extent_chunk_tree_uuid | expand

Commit Message

Yue Haibing May 9, 2020, 11:22 a.m. UTC
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>
---
 fs/btrfs/ctree.h | 7 -------
 1 file changed, 7 deletions(-)

Comments

David Sterba May 11, 2020, 12:40 p.m. UTC | #1
On Sat, May 09, 2020 at 07:22:43PM +0800, YueHaibing wrote:
> 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>

Added to misc-next, thanks.
diff mbox series

Patch

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 03ea7370aea7..0b78ab0213bb 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -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);