aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorLuca Stefani <luca.stefani.ge1@gmail.com>2024-09-02 13:10:53 +0200
committerDavid Sterba <dsterba@suse.com>2024-09-10 16:51:21 +0200
commit3368597206dc3c6c3c2247ee146beada14c67380 (patch)
tree9e283800f88c206ebe5c8ba84e213bd476852680 /fs/btrfs/tree-mod-log.c
parentfaad57ae20190de6375e1c3a7144c7ae66ab4ddf (diff)
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: stable@vger.kernel.org # 5.15+ Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions