# Re: \[PATCH v14 022/138\] mm/filemap: Add \_\_folio\_lock\_or\_retry()

- From: Mike Rapoport \<rppt@kernel.org\>
- Date: 2021-07-20 10:45:57 
- List: linux-fsdevel
- Page: https://ratatoskr.run/linux-fsdevel/2021/07/210558
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/3.md

```text
On Thu, Jul 15, 2021 at 04:35:08AM +0100, Matthew Wilcox (Oracle) wrote:
> Convert __lock_page_or_retry() to __folio_lock_or_retry().  This actually
> saves 4 bytes in the only caller of lock_page_or_retry() (due to better
> register allocation) and saves the 14 byte cost of calling page_folio()
> in __folio_lock_or_retry() for a total saving of 18 bytes.  Also use
> a bool for the return type.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Acked-by: Jeff Layton <jlayton@kernel.org>
> Acked-by: Kirill A. Shutemov <redacted>
> Reviewed-by: William Kucharski <redacted>
> ---
>  include/linux/pagemap.h | 11 +++++++----
>  mm/filemap.c            | 20 +++++++++-----------
>  mm/memory.c             |  8 ++++----
>  3 files changed, 20 insertions(+), 19 deletions(-)

Acked-by: Mike Rapoport <redacted>
```
