From: Andreas Dilger Date: Wed, 30 Mar 2022 04:04:45 +0000 (-0600) Subject: LU-15692 lmv: change default hash back to fnv_1a_64 X-Git-Tag: 2.15.0-RC3~6 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0090b6f6f6cfd65fcacfa4dda23bee2cec11cb70;p=fs%2Flustre-release.git LU-15692 lmv: change default hash back to fnv_1a_64 Until performance issue is resolved, change the default directory hash type from 'crush' back to 'fnv_1a_64'. Fixes: bb60caa1c6e7 ("LU-14459 lmv: change default hash type to crush") Signed-off-by: Andreas Dilger Change-Id: If2cef70298773f42dc1c62809eea98519b3ebbe5 Reviewed-on: https://review.whamcloud.com/46950 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Shuichi Ihara Reviewed-by: Oleg Drokin --- diff --git a/lustre/include/uapi/linux/lustre/lustre_user.h b/lustre/include/uapi/linux/lustre/lustre_user.h index ba5e276..98507e0 100644 --- a/lustre/include/uapi/linux/lustre/lustre_user.h +++ b/lustre/include/uapi/linux/lustre/lustre_user.h @@ -1010,7 +1010,7 @@ static __attribute__((unused)) const char *mdt_hash_name[] = { "crush", }; -#define LMV_HASH_TYPE_DEFAULT LMV_HASH_TYPE_CRUSH +#define LMV_HASH_TYPE_DEFAULT LMV_HASH_TYPE_FNV_1A_64 /* Right now only the lower part(0-16bits) of lmv_hash_type is being used, * and the higher part will be the flag to indicate the status of object,