summaryrefslogtreecommitdiffstats
path: root/kernel/fs/f2fs/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/f2fs/hash.c')
-rw-r--r--kernel/fs/f2fs/hash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/fs/f2fs/hash.c b/kernel/fs/f2fs/hash.c
index a844fcfb9..71b7206c4 100644
--- a/kernel/fs/f2fs/hash.c
+++ b/kernel/fs/f2fs/hash.c
@@ -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 */