]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/f2fs/hash.c
f2fs: introduce f2fs_replace_block() for reuse
[mirror_ubuntu-bionic-kernel.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 */