diff options
| author | Namjae Jeon <[email protected]> | 2025-05-21 08:07:36 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-05-22 03:30:30 +0000 |
| commit | 68477b5dc57108d4306c56b3842d6f80a8161f30 (patch) | |
| tree | 21806e8d9f628895c2028b5bfddfd1da6ace4ca6 /rust/helpers/build_assert.c | |
| parent | ksmbd: fix stream write failure (diff) | |
| download | kernel-68477b5dc57108d4306c56b3842d6f80a8161f30.tar.gz kernel-68477b5dc57108d4306c56b3842d6f80a8161f30.zip | |
ksmbd: fix rename failure
I found that rename fails after cifs mount due to update of
lookup_one_qstr_excl().
mv a/c b/
mv: cannot move 'a/c' to 'b/c': No such file or directory
In order to rename to a new name regardless of whether the dentry is
negative, we need to get the dentry through lookup_one_qstr_excl().
So It will not return error if the name doesn't exist.
Fixes: 204a575e91f3 ("VFS: add common error checks to lookup_one_qstr_excl()")
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions
