]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: assert the folio is locked in folio_start_writeback()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 26 Feb 2025 15:36:12 +0000 (15:36 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 01:00:36 +0000 (17:00 -0800)
commit5aa706e8210d114e7a5af21c6deb2d49c32b8b3e
tree17cf547ca9e51a172a1623f777ab5d3079fe4f18
parentb48c50c8c2506540ae4d6154b212ddf6018e1f4f
mm: assert the folio is locked in folio_start_writeback()

The folio must be locked when we start writeback in order to prevent
writeback from being started twice on the same folio.  I don't expect this
to catch any problems, but it should be good documentation.

Link: https://lkml.kernel.org/r/20250226153614.3774896-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page-writeback.c