public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] btrfs: fix a bug with truncation and writeback and cleanups
@ 2025-10-13 12:05 fdmanana
  2025-10-13 12:05 ` [PATCH 1/7] btrfs: truncate ordered extent when skipping writeback past i_size fdmanana
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: fdmanana @ 2025-10-13 12:05 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

The first patch fixes a bug where we can up persisting a file extent item
that crosses the i_size boundary, making btrfs check complain because it
won't find checksum items beyond the i_size boundary. Details in the change
log. The rest are several cleanups in related code that popped up while
debugging the issue.

Filipe Manana (7):
  btrfs: truncate ordered extent when skipping writeback past i_size
  btrfs: use variable for end offset in extent_writepage_io()
  btrfs: split assertion into two in extent_writepage_io()
  btrfs: add unlikely to unexpected error case in extent_writepages()
  btrfs: consistently round up or down i_size in btrfs_truncate()
  btrfs: avoid multiple i_size rounding in btrfs_truncate()
  btrfs: avoid repeated computations in btrfs_mark_ordered_io_finished()

 fs/btrfs/extent_io.c    | 33 ++++++++++++++++++++++++++-------
 fs/btrfs/inode.c        | 18 ++++++++----------
 fs/btrfs/ordered-data.c | 23 +++++++++++------------
 3 files changed, 45 insertions(+), 29 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2025-10-13 22:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 12:05 [PATCH 0/7] btrfs: fix a bug with truncation and writeback and cleanups fdmanana
2025-10-13 12:05 ` [PATCH 1/7] btrfs: truncate ordered extent when skipping writeback past i_size fdmanana
2025-10-13 20:46   ` Qu Wenruo
2025-10-13 12:05 ` [PATCH 2/7] btrfs: use variable for end offset in extent_writepage_io() fdmanana
2025-10-13 20:51   ` Qu Wenruo
2025-10-13 12:05 ` [PATCH 3/7] btrfs: split assertion into two " fdmanana
2025-10-13 20:52   ` Qu Wenruo
2025-10-13 12:05 ` [PATCH 4/7] btrfs: add unlikely to unexpected error case in extent_writepages() fdmanana
2025-10-13 20:52   ` Qu Wenruo
2025-10-13 12:05 ` [PATCH 5/7] btrfs: consistently round up or down i_size in btrfs_truncate() fdmanana
2025-10-13 20:52   ` Qu Wenruo
2025-10-13 12:05 ` [PATCH 6/7] btrfs: avoid multiple i_size rounding " fdmanana
2025-10-13 20:53   ` Qu Wenruo
2025-10-13 12:05 ` [PATCH 7/7] btrfs: avoid repeated computations in btrfs_mark_ordered_io_finished() fdmanana
2025-10-13 20:55   ` Qu Wenruo
2025-10-13 21:01 ` [PATCH 0/7] btrfs: fix a bug with truncation and writeback and cleanups Qu Wenruo
2025-10-13 22:41   ` Filipe Manana

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