linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the vfs tree with the ksmbd tree
@ 2023-04-21 12:38 broonie
  0 siblings, 0 replies; 2+ messages in thread
From: broonie @ 2023-04-21 12:38 UTC (permalink / raw)
  To: Al Viro
  Cc: Linux Kernel Mailing List, Linux Next Mailing List, Namjae Jeon,
	Steve French

Hi all,

Today's linux-next merge of the vfs tree got conflicts in:

  include/linux/namei.h
  fs/ksmbd/vfs.c

between commits:

  624d981552e10 ("ksmbd: fix racy issue from using ->d_parent and ->d_name")
  0242bdc54a512 ("fs: introduce lock_rename_child() helper")
  35175d058b140 ("ksmbd: remove internal.h include")

from the ksmbd tree and commits:

  9bc37e04823b5 ("fs: introduce lock_rename_child() helper")
  211db0ac9e3dc ("ksmbd: remove internal.h include")

from the vfs tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc fs/ksmbd/vfs.c
index 778c152708e43,cef07d7fb7dc4..0000000000000
--- a/fs/ksmbd/vfs.c
+++ b/fs/ksmbd/vfs.c
diff --cc include/linux/namei.h
index 1463cbda48886,5864e4d82e567..0000000000000
--- a/include/linux/namei.h
+++ b/include/linux/namei.h

[The ksmbd version was already in the tree with one extra commit on top
of the two that appear to have been cherry picked from the vfs tree.]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* linux-next: manual merge of the vfs tree with the ksmbd tree
@ 2022-10-05 23:59 Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2022-10-05 23:59 UTC (permalink / raw)
  To: Al Viro, Steve French
  Cc: Atte Heikkilä,
	Linux Kernel Mailing List, Linux Next Mailing List, Steve French

[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]

Hi all,

Today's linux-next merge of the vfs tree got a conflict in:

  fs/ksmbd/vfs.c

between commit:

  dbab80e2071a ("ksmbd: make utf-8 file name comparison work in __caseless_lookup()")

from the ksmbd tree and commit:

  25885a35a720 ("Change calling conventions for filldir_t")

from the vfs tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc fs/ksmbd/vfs.c
index 8d8af724df70,48b2b901f6e5..000000000000
--- a/fs/ksmbd/vfs.c
+++ b/fs/ksmbd/vfs.c
@@@ -1150,23 -1149,13 +1148,23 @@@ static bool __caseless_lookup(struct di
  	buf = container_of(ctx, struct ksmbd_readdir_data, ctx);
  
  	if (buf->used != namlen)
- 		return 0;
+ 		return true;
 -	if (!strncasecmp((char *)buf->private, name, namlen)) {
 +	if (IS_ENABLED(CONFIG_UNICODE) && buf->um) {
 +		const struct qstr q_buf = {.name = buf->private,
 +					   .len = buf->used};
 +		const struct qstr q_name = {.name = name,
 +					    .len = namlen};
 +
 +		cmp = utf8_strncasecmp(buf->um, &q_buf, &q_name);
 +	}
 +	if (cmp < 0)
 +		cmp = strncasecmp((char *)buf->private, name, namlen);
 +	if (!cmp) {
  		memcpy((char *)buf->private, name, namlen);
  		buf->dirent_count = 1;
- 		return -EEXIST;
+ 		return false;
  	}
- 	return 0;
+ 	return true;
  }
  
  /**

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-21 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 12:38 linux-next: manual merge of the vfs tree with the ksmbd tree broonie
  -- strict thread matches above, loose matches on Subject: below --
2022-10-05 23:59 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).