summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGael Blivet <gael.blivet@gmail.com>2026-07-07 11:55:02 +0200
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-17 15:00:34 +0900
commit495ade881b5c52e2a2b646d04b04a4429e5734e9 (patch)
tree722b00837f3547ff2d811e6a30ef9e2114b65a76 /tools/perf/scripts/python
parentd68d4b3293034f549d55f407a23b4c0a6c90e50a (diff)
ksmbd: route stream FileDispositionInformation through stream delete flag
set_file_disposition_info() calls ksmbd_set_inode_pending_delete() / ksmbd_clear_inode_pending_delete() unconditionally, which always sets S_DEL_PENDING on the whole inode (ci->m_flags), regardless of whether the handle being closed is a regular file or an alternate data stream. Requesting delete-pending on a single stream handle (e.g. deleting just an alternate data stream some clients keep alongside a file) would therefore incorrectly schedule deletion of the entire file's data, not just the stream. Add ksmbd_fd_set_delete_pending()/ksmbd_fd_clear_delete_pending(), following the same stream-vs-whole-file routing pattern already used by ksmbd_fd_set_delete_on_close() for the CREATE-time DeleteOnClose option, and switch set_file_disposition_info() to use them. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: Gael Blivet <gael.blivet@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions