Thread (14 messages) 14 messages, 5 authors, 2019-08-21

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

From: Chao Yu <chao@kernel.org>
Date: 2019-08-21 13:15:21
Also in: linux-api, linux-f2fs-devel, linux-fsdevel, lkml

On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote:
+static int f2fs_d_compare(const struct dentry *dentry, unsigned int len,
+ const char *str, const struct qstr *name)
+{
+	struct qstr qstr = {.name = str, .len = len };
+
+	if (!IS_CASEFOLDED(dentry->d_parent->d_inode)) {
+		if (len != name->len)
+			return -1;
+		return memcmp(str, name, len);
66883da1eee8 ("ext4: fix dcache lookup of !casefolded directories")

memcmp(str, name->name, len);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help