linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] btrfs: fixes related to btrfs_folio_start_writer_lock()
@ 2024-10-08 23:07 Qu Wenruo
  2024-10-08 23:07 ` [PATCH v3 1/2] btrfs: fix the delalloc range locking if sector size < page size Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2024-10-08 23:07 UTC (permalink / raw)
  To: linux-btrfs

[Changelog]
v2:
- Remove the unused btrfs_folio_start_writer_lock()

v3:
- Split out the btrfs_folio_start_writer_lock() removal
  As the initial fix needs to go backported to 5.15+, keeps the
  modification as small as possible

The function lacks the proper folio->mapping check, thus we can even get
a folio not belonging to btrfs, and cause unexpeceted folio->private
updates.

Fix the only caller of btrfs_folio_start_writer_lock() inside
lock_delalloc_folios() and other sector size < page size handling of
lock_delalloc_folios().

Then finally remove btrfs_folio_start_writer_lock()

Qu Wenruo (2):
  btrfs: fix the delalloc range locking if sector size < page size
  btrfs: remove unused btrfs_folio_start_writer_lock()

 fs/btrfs/extent_io.c | 17 ++++++++--------
 fs/btrfs/subpage.c   | 47 --------------------------------------------
 fs/btrfs/subpage.h   |  2 --
 3 files changed, 9 insertions(+), 57 deletions(-)

-- 
2.46.2


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

end of thread, other threads:[~2024-10-16 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08 23:07 [PATCH v3 0/2] btrfs: fixes related to btrfs_folio_start_writer_lock() Qu Wenruo
2024-10-08 23:07 ` [PATCH v3 1/2] btrfs: fix the delalloc range locking if sector size < page size Qu Wenruo
2024-10-08 23:07 ` [PATCH v3 2/2] btrfs: remove unused btrfs_folio_start_writer_lock() Qu Wenruo
2024-10-16 15:16 ` [PATCH v3 0/2] btrfs: fixes related to btrfs_folio_start_writer_lock() David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).