summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@mykernel.net>2019-10-10 15:59:56 +0800
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:55 +0100
commitb2cd29596469f16e2a56bcd59d6cbf7f7652131f (patch)
tree1477ccadde6856aa3c70444894639299bcdd294d
parent8d510121bfbf87302e0594d2022c5e7d52b26f7f (diff)
btrfs: props: remove unnecessary hash_init()
DEFINE_HASHTABLE itself has already included initialization code, we don't have to call hash_init() again, so remove it. Signed-off-by: Chengguang Xu <cgxu519@mykernel.net> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/props.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c
index aac596300c89..deb59e7cfcac 100644
--- a/fs/btrfs/props.c
+++ b/fs/btrfs/props.c
@@ -437,8 +437,6 @@ void __init btrfs_props_init(void)
{
int i;
- hash_init(prop_handlers_ht);
-
for (i = 0; i < ARRAY_SIZE(prop_handlers); i++) {
struct prop_handler *p = &prop_handlers[i];
u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name));