aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2021-02-04 19:22:09 +0900
committerDavid Sterba <[email protected]>2021-02-09 02:46:07 +0100
commit24c0a7227fdfa598badcfc0f735d16745d39e0c4 (patch)
tree7e4c3fd7ccf227e6ea245e1be6320b95cbba8d40 /fs/btrfs/dev-replace.c
parent0bc09ca12980db3ef1e55bfad25b1803d57628c9 (diff)
btrfs: zoned: wait for existing extents before truncating
When truncating a file, file buffers which have already been allocated but not yet written may be truncated. Truncating these buffers could cause breakage of a sequential write pattern in a block group if the truncated blocks are for example followed by blocks allocated to another file. To avoid this problem, always wait for write out of all unwritten buffers before proceeding with the truncate execution. Signed-off-by: Naohiro Aota <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions