# Re: \[PATCH v14 001/138\] mm: Convert get\_page\_unless\_zero() to return bool

- From: David Howells \<dhowells@redhat.com\>
- Date: 2021-08-10 15:27:17 
- List: linux-fsdevel
- Page: https://ratatoskr.run/linux-fsdevel/2021/08/211969
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/4.md

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

> atomic_add_unless() returns bool, so remove the widening casts to int
> in page_ref_add_unless() and get_page_unless_zero().  This causes gcc
> to produce slightly larger code in isolate_migratepages_block(), but
> it's not clear that it's worse code.  Net +19 bytes of text.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Acked-by: Kirill A. Shutemov <redacted>

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

```
