# Re: \[PATCH v14 089/138\] mm/filemap: Add FGP\_STABLE

- From: Vlastimil Babka \<hidden\>
- Date: 2021-08-12 17:48:34 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/08/212254
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/5.md

```text
On 7/15/21 5:36 AM, Matthew Wilcox (Oracle) wrote:
> Allow filemap_get_folio() to wait for writeback to complete (if the
> filesystem wants that behaviour).  This is the folio equivalent of
> grab_cache_page_write_begin(), which is moved into the folio-compat
> file as a reminder to migrate all the code using it.  This paves the
> way for getting rid of AOP_FLAG_NOFS once grab_cache_page_write_begin()
> is removed.
> 
> Kernel grows by 11 bytes.  filemap_get_folio() grows by 33 bytes but
> grab_cache_page_write_begin() shrinks by 22 bytes to make up for it.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

Acked-by: Vlastimil Babka <redacted>

```
