Whamcloud - gitweb
LU-11025 dne: introduce new directory hash type: "crush"
[fs/lustre-release.git] / lustre / utils / lustreapi_internal.h
index f69fca0..94bc8ed 100644 (file)
@@ -146,7 +146,7 @@ static inline bool llapi_dir_hash_type_is_valid(int64_t hash)
 {
        int64_t _hash = hash & LMV_HASH_TYPE_MASK;
 
-       return _hash > LMV_HASH_TYPE_UNKNOWN && _hash <  LMV_HASH_TYPE_MAX;
+       return _hash >= LMV_HASH_TYPE_UNKNOWN && _hash <  LMV_HASH_TYPE_MAX;
 }
 
 /*