• R/O
  • SSH
  • HTTPS

akari: Commit


Commit MetaInfo

Revision529 (tree)
Time2016-08-04 13:46:33
Authorkumaneko

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/akari/realpath.c (revision 528)
+++ trunk/akari/realpath.c (revision 529)
@@ -701,7 +701,11 @@
701701 ptr->const_len = ccs_const_part_length(name);
702702 ptr->is_dir = len && (name[len - 1] == '/');
703703 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
704707 ptr->hash = full_name_hash(name, len);
708+#endif
705709 }
706710
707711 /**
--- trunk/akari/memory.c (revision 528)
+++ trunk/akari/memory.c (revision 529)
@@ -161,7 +161,11 @@
161161 if (!name)
162162 return NULL;
163163 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
164167 hash = full_name_hash((const unsigned char *) name, len - 1);
168+#endif
165169 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) || defined(RHEL_MAJOR)
166170 head = &ccs_name_list[hash_long(hash, CCS_HASH_BITS)];
167171 #else
Show on old repository browser