These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / fs / f2fs / hash.c
index a844fcf..71b7206 100644 (file)
@@ -79,8 +79,7 @@ f2fs_hash_t f2fs_dentry_hash(const struct qstr *name_info)
        const unsigned char *name = name_info->name;
        size_t len = name_info->len;
 
-       if ((len <= 2) && (name[0] == '.') &&
-               (name[1] == '.' || name[1] == '\0'))
+       if (is_dot_dotdot(name_info))
                return 0;
 
        /* Initialize the default seed for the hash checksum functions */