diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-01-15 23:34:16 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-10-18 07:49:39 -0400 |
commit | 269ccca3899f6bce49e004f50f623e0b161fb027 (patch) | |
tree | 08a5a5ab6250433013e0c32632766a9468b36bef /include/linux/page-flags.h | |
parent | cc24df4cd15f197676e8ba43383ba80e78a5b865 (diff) | |
download | linux-269ccca3899f6bce49e004f50f623e0b161fb027.tar.gz linux-269ccca3899f6bce49e004f50f623e0b161fb027.tar.bz2 linux-269ccca3899f6bce49e004f50f623e0b161fb027.zip |
mm/writeback: Add __folio_end_writeback()
test_clear_page_writeback() is actually an mm-internal function, although
it's named as if it's a pagecache function. Move it to mm/internal.h,
rename it to __folio_end_writeback() and change the return type to bool.
The conversion from page to folio is mostly about accounting the number
of pages being written back, although it does eliminate a couple of
calls to compound_head().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 2491e84b8e52..3aebb2060a26 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -657,7 +657,6 @@ static __always_inline void SetPageUptodate(struct page *page) CLEARPAGEFLAG(Uptodate, uptodate, PF_NO_TAIL) -int test_clear_page_writeback(struct page *page); int __test_set_page_writeback(struct page *page, bool keep_write); #define test_set_page_writeback(page) \ |