mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: don't expose ERESTARTSYS to userspace
@ 2026-10-28 17:55 Luca Stefani via B4 Relay
  2026-10-28 17:55 ` [PATCH 1/2] btrfs: account partially completed discards Luca Stefani via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Luca Stefani via B4 Relay @ 2026-10-28 17:55 UTC (permalink / raw)
  To: David Sterba, Chris Mason, Luca Stefani
  Cc: Robbie Ko, Filipe Manana, linux-btrfs, linux-kernel,
	Zhiwei Liang, Qu Wenruo

trim can expose -ERESTARTSYS when the trim loops gets interrupted by
a freezer request.

Preserve byte counts of partially completed discards.
Consume cancellation at btrfs_trim_fs(), and report partial progress.

Link: https://lore.kernel.org/20261028-btrfs-fitrim-freezer-v1-1-0ad1d58aa94d@zliang.me/
---
Luca Stefani (2):
      btrfs: account partially completed discards
      btrfs: don't report failure when trim is interrupted

 fs/btrfs/extent-tree.c      | 10 ++++------
 fs/btrfs/free-space-cache.c |  5 ++---
 2 files changed, 6 insertions(+), 9 deletions(-)
---
base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
change-id: 20261028-b4-btrfs-fitrim-interruption-48ae75801fa0

Best regards,
--  
Luca Stefani <luca.stefani.ge1@gmail.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-29  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 17:55 [PATCH 0/2] btrfs: don't expose ERESTARTSYS to userspace Luca Stefani via B4 Relay
2026-10-28 17:55 ` [PATCH 1/2] btrfs: account partially completed discards Luca Stefani via B4 Relay
2026-10-28 21:02   ` Qu Wenruo
2026-10-28 17:55 ` [PATCH 2/2] btrfs: don't report failure when trim is interrupted Luca Stefani via B4 Relay
2026-10-28 21:06   ` Qu Wenruo
2026-10-29  8:56     ` Luca Stefani
2026-10-28 20:13 ` [PATCH 0/2] btrfs: don't expose ERESTARTSYS to userspace zhiwei.liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®