diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-01-13 07:52:25 +0100 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-02-15 01:10:46 +0100 |
commit | 7c3511a2c82005642265a254e6dd578cb38684b2 (patch) | |
tree | b8d7b857ba6527c7327ab0a48ff33c31cdea2ce9 /fs/erofs/internal.h | |
parent | Linux 6.2-rc5 (diff) | |
download | linux-7c3511a2c82005642265a254e6dd578cb38684b2.tar.xz linux-7c3511a2c82005642265a254e6dd578cb38684b2.zip |
erofs: clean up erofs_iget()
Move inode hash function into inode.c and simplify erofs_iget().
Link: https://lore.kernel.org/r/20230113065226.68801-1-hsiangkao@linux.alibaba.com
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r-- | fs/erofs/internal.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index bb8501c0ff5b..168c21f16383 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -480,15 +480,6 @@ int erofs_map_blocks(struct inode *inode, struct erofs_map_blocks *map, int flags); /* inode.c */ -static inline unsigned long erofs_inode_hash(erofs_nid_t nid) -{ -#if BITS_PER_LONG == 32 - return (nid >> 32) ^ (nid & 0xffffffff); -#else - return nid; -#endif -} - extern const struct inode_operations erofs_generic_iops; extern const struct inode_operations erofs_symlink_iops; extern const struct inode_operations erofs_fast_symlink_iops; |