diff options
| author | Luca Stefani <[email protected]> | 2024-09-02 11:10:53 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-09-10 14:51:21 +0000 |
| commit | 3368597206dc3c6c3c2247ee146beada14c67380 (patch) | |
| tree | 9e283800f88c206ebe5c8ba84e213bd476852680 /fs/btrfs/ordered-data.c | |
| parent | btrfs: convert copy_inline_to_page() to use folio (diff) | |
| download | kernel-3368597206dc3c6c3c2247ee146beada14c67380.tar.gz kernel-3368597206dc3c6c3c2247ee146beada14c67380.zip | |
btrfs: always update fstrim_range on failure in FITRIM ioctl
Even in case of failure we could've discarded some data and userspace
should be made aware of it, so copy fstrim_range to userspace
regardless.
Also make sure to update the trimmed bytes amount even if
btrfs_trim_free_extents fails.
CC: [email protected] # 5.15+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Luca Stefani <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions
