btrfs: props: remove unnecessary hash_init()
authorChengguang Xu <cgxu519@mykernel.net>
Thu, 10 Oct 2019 07:59:56 +0000 (15:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:55 +0000 (12:46 +0100)
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>
fs/btrfs/props.c

index aac596300c89da7f1d4cb4855d455848acf8ebbe..deb59e7cfcac586ff850fac28edb279a2f0640f0 100644 (file)
@@ -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));