[2/2] btrfs: remove unused key type set/get helpers
diff mbox series

Message ID 69849572853391c7e2e3aadd2f169786ec663234.1564681931.git.dsterba@suse.com
State New
Headers show
Series
  • Unused code cleanups
Related show

Commit Message

David Sterba Aug. 1, 2019, 5:53 p.m. UTC
The switch to open coded set/get has happend long time ago in
962a298f3511 ("btrfs: kill the key type accessor helpers"), remove the
stray helpers.

Signed-off-by: David Sterba <dsterba@suse.com>
---
 fs/btrfs/ctree.h | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Anand Jain Aug. 2, 2019, 3:41 a.m. UTC | #1
On 8/2/19 1:53 AM, David Sterba wrote:
> The switch to open coded set/get has happend long time ago in
> 962a298f3511 ("btrfs: kill the key type accessor helpers"), remove the
> stray helpers.
> 
> Signed-off-by: David Sterba <dsterba@suse.com>

Reviewed-by: Anand Jain <anand.jain@oracle.com>

Patch
diff mbox series

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 1110bbd4bffb..3af3f680b5f1 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2072,16 +2072,6 @@  static inline void btrfs_dir_item_key_to_cpu(const struct extent_buffer *eb,
 	btrfs_disk_key_to_cpu(key, &disk_key);
 }
 
-static inline u8 btrfs_key_type(const struct btrfs_key *key)
-{
-	return key->type;
-}
-
-static inline void btrfs_set_key_type(struct btrfs_key *key, u8 val)
-{
-	key->type = val;
-}
-
 /* struct btrfs_header */
 BTRFS_SETGET_HEADER_FUNCS(header_bytenr, struct btrfs_header, bytenr, 64);
 BTRFS_SETGET_HEADER_FUNCS(header_generation, struct btrfs_header,