(empty log message)
@@ -701,7 +701,11 @@ | ||
701 | 701 | ptr->const_len = ccs_const_part_length(name); |
702 | 702 | ptr->is_dir = len && (name[len - 1] == '/'); |
703 | 703 | ptr->is_patterned = (ptr->const_len < len); |
704 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) | |
705 | + ptr->hash = full_name_hash(NULL, name, len); | |
706 | +#else | |
704 | 707 | ptr->hash = full_name_hash(name, len); |
708 | +#endif | |
705 | 709 | } |
706 | 710 | |
707 | 711 | /** |
@@ -161,7 +161,11 @@ | ||
161 | 161 | if (!name) |
162 | 162 | return NULL; |
163 | 163 | len = strlen(name) + 1; |
164 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) | |
165 | + hash = full_name_hash(NULL, name, len - 1); | |
166 | +#else | |
164 | 167 | hash = full_name_hash((const unsigned char *) name, len - 1); |
168 | +#endif | |
165 | 169 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) || defined(RHEL_MAJOR) |
166 | 170 | head = &ccs_name_list[hash_long(hash, CCS_HASH_BITS)]; |
167 | 171 | #else |