# Re: \[PATCH v14 073/138\] mm/writeback: Add folio\_cancel\_dirty()

- From: David Howells \<dhowells@redhat.com\>
- Date: 2021-08-10 21:23:56 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/08/212021
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/4.md

```text
Matthew Wilcox (Oracle) [ref] wrote:

> Turn __cancel_dirty_page() into __folio_cancel_dirty() and add wrappers.
> Move the prototypes into pagemap.h since this is page cache functionality.
> Saves 44 bytes of kernel text in total; 33 bytes from __folio_cancel_dirty
> and 11 from two callers of cancel_dirty_page().
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: David Howells <dhowells@redhat.com>


```
