]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: get rid of d_drop()+d_add()
authorPaulo Alcantara <pc@manguebit.org>
Fri, 10 Apr 2026 23:20:55 +0000 (20:20 -0300)
committerSteve French <stfrench@microsoft.com>
Sat, 11 Apr 2026 01:18:45 +0000 (20:18 -0500)
commitdc0325b0aafe28fa7a00c49aec97095ccae0952b
tree490ad160ead350c1765f654e92bae63ab3478d12
parent62e02084ab93c31c53dd38f149782ce8349a2d90
smb: client: get rid of d_drop()+d_add()

Replace d_drop()+d_add() in cifs_tmpfile() and cifs_create() with
d_instantiate(), and in cifs_atomic_open() with d_splice_alias() if
in-lookup, otherwise d_instantiate().

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Closes: https://lore.kernel.org/r/20260408065719.GF3836593@ZenIV
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Cc: David Howells <dhowells@redhat.com>
Cc: NeilBrown <neilb@ownmail.net>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.h
fs/smb/client/dir.c