Merge tag 'tty-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[firefly-linux-kernel-4.4.55.git] / fs / f2fs / hash.c
index a844fcfb9a8dcc70859e44c8933c465d9be36fb9..71b7206c431ea00f937e5b1e59b5f90999091d2a 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 */