Skip to content

Commit ca5bfda

Browse files
author
CKI KWF Bot
committed
Merge: CIFS: fix regression with rename14 LTP test [rhel-9.8]
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7537 - fix regression with rename14 LTP test JIRA: https://issues.redhat.com/browse/RHEL-123665 Signed-off-by: Paulo Alcantara <paalcant@redhat.com> Approved-by: Scott Mayhew <smayhew@redhat.com> Approved-by: David Howells <dhowells@redhat.com> Approved-by: Jay Shin <jaeshin@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 2a9426b + 5aafd96 commit ca5bfda

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fs/smb/client/inode.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,11 +2462,8 @@ cifs_do_rename(const unsigned int xid, struct dentry *from_dentry,
24622462
}
24632463
#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
24642464
do_rename_exit:
2465-
if (rc == 0) {
2465+
if (rc == 0)
24662466
d_move(from_dentry, to_dentry);
2467-
/* Force a new lookup */
2468-
d_drop(from_dentry);
2469-
}
24702467
cifs_put_tlink(tlink);
24712468
return rc;
24722469
}

0 commit comments

Comments
 (0)