diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-26 11:01:42 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:54 +0900 |
| commit | 84c41b731b019f1e5a97c21ac1a4a4c63b6be38f (patch) | |
| tree | 6945ac26a5d69385ce2da056228700f542b88e45 /tools/perf/scripts/python/flamegraph.py | |
| parent | 25e414db703334954747cb1b3eedf914b093ff8c (diff) | |
ksmbd: stabilize allocation size after buffered writes
Ordinary opens initialize their allocation size from stat.blocks.
Buffered writes can leave delayed allocation pending, so separate handles
can cache different block counts for the same file.
This makes generic/568 fail when a zero write used for fallocate
emulation is followed by an overwrite of the same range. The first query
can report the pre-writeback block count, while the second query reports
the block count after delayed allocation is completed.
Complete writeback and refresh the cached block count before returning
allocation information for ordinary opens. Track client-specified
allocation sizes separately so CREATE allocation contexts and
FILE_ALLOCATION_INFORMATION continue to return the requested value.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
