diff options
| author | Gael Blivet <gael.blivet@gmail.com> | 2026-07-09 02:01:10 +0200 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:40 +0900 |
| commit | 86f901803080056668cdaf23b01c8e81d2e77956 (patch) | |
| tree | f6bdd0e35de69c9f9131fdf66b5bd6ed507b72ee /tools/perf/scripts/python/parallel-perf.py | |
| parent | 439a472cb4fa5df77d595e37205115c01d887d95 (diff) | |
ksmbd: don't check directory emptiness when deleting a stream
set_file_disposition_info() checks S_ISDIR(inode->i_mode) &&
ksmbd_vfs_empty_dir(fp) == -ENOTEMPTY to refuse deleting a non-empty
directory. A stream handle's fp->filp refers to the same underlying
inode as its base file or directory (streams are xattr-backed on that
same inode), so this check also fires when the target is actually a
stream attached to a directory, not the directory itself -- deleting
the stream then incorrectly fails with -EBUSY whenever the directory
happens to be non-empty, even though removing an xattr has nothing to
do with the directory's contents.
Skip the directory-emptiness check for stream handles, matching how
ksmbd_stream_fd() is already used elsewhere in this function.
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/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
