aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorZhang Xiaoxu <[email protected]>2020-06-28 21:06:38 -0400
committerSteve French <[email protected]>2020-07-01 19:41:56 -0500
commit9ffad9263b467efd8f8dc7ae1941a0a655a2bab2 (patch)
treec0cfe2bdb4dc73cd6d0f77c5894130bf4c2a280c /lib/mpi/mpi-sub-ui.c
parent5391b8e1b7b7e5cfa2dd4ffdc4b8c6b64dfd1866 (diff)
cifs: Fix the target file was deleted when rename failed.
When xfstest generic/035, we found the target file was deleted if the rename return -EACESS. In cifs_rename2, we unlink the positive target dentry if rename failed with EACESS or EEXIST, even if the target dentry is positived before rename. Then the existing file was deleted. We should just delete the target file which created during the rename. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zhang Xiaoxu <[email protected]> Cc: [email protected] Signed-off-by: Steve French <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions