diff options
author | Josef Bacik <josef@toxicpanda.com> | 2023-08-25 16:19:21 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-10-12 16:44:02 +0200 |
commit | 98e4f060c4f565a3b62e8cdfe6b89f59167312b6 (patch) | |
tree | d074a93b8c964c532948052cad9f97462a9574e8 /fs/btrfs/ctree.h | |
parent | 03e86348965a5fa13593db8682132033d663f7ee (diff) | |
download | linux-stable-98e4f060c4f565a3b62e8cdfe6b89f59167312b6.tar.gz linux-stable-98e4f060c4f565a3b62e8cdfe6b89f59167312b6.tar.bz2 linux-stable-98e4f060c4f565a3b62e8cdfe6b89f59167312b6.zip |
btrfs: move btrfs_extref_hash into inode-item.h
Ideally this would be un-inlined, but that is a cleanup for later. For
now move this into inode-item.h, which is where the extref code lives.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index bffee2ab5783..7b8e52fd6d99 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -475,15 +475,6 @@ static inline u64 btrfs_name_hash(const char *name, int len) return crc32c((u32)~1, name, len); } -/* - * Figure the key offset of an extended inode ref - */ -static inline u64 btrfs_extref_hash(u64 parent_objectid, const char *name, - int len) -{ - return (u64) crc32c(parent_objectid, name, len); -} - static inline gfp_t btrfs_alloc_write_mask(struct address_space *mapping) { return mapping_gfp_constraint(mapping, ~__GFP_FS); |