Message ID | 69849572853391c7e2e3aadd2f169786ec663234.1564681931.git.dsterba@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Unused code cleanups | expand |
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>
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,
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(-)