Commit 5aafd96
committed
smb: client: get rid of d_drop() in cifs_do_rename()
JIRA: https://issues.redhat.com/browse/RHEL-123665
commit 72ed55b
Author: Paulo Alcantara <pc@manguebit.org>
Date: Wed Oct 22 21:11:01 2025 -0300
smb: client: get rid of d_drop() in cifs_do_rename()
There is no need to force a lookup by unhashing the moved dentry after
successfully renaming the file on server. The file metadata will be
re-fetched from server, if necessary, in the next call to
->d_revalidate() anyways.
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: stable@vger.kernel.org
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Paulo Alcantara <paalcant@redhat.com>1 parent df37740 commit 5aafd96
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2462 | 2462 | | |
2463 | 2463 | | |
2464 | 2464 | | |
2465 | | - | |
| 2465 | + | |
2466 | 2466 | | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | 2467 | | |
2471 | 2468 | | |
2472 | 2469 | | |
| |||
0 commit comments