]> 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>
Tue, 4 Mar 2025 05:50:35 +0000 (21:50 -0800)
commitf6ca684023a878fbd8ff9cc9c3644276bf1ffe24
tree56a9005ea10d1ea3df0535115c8fdd6532e07534
parent30d61ad14aea38719872c639cfec99f182a3e685
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