2017-11-28 02:53:36

by Jiang Biao

[permalink] [raw]
Subject: [PATCH] mm/vmscan: change return type of is_page_cache_freeable from int to bool

Using bool for the return type of is_page_cache_freeable() should be
more appropriate.

Signed-off-by: Jiang Biao <[email protected]>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index eb2f031..5fe63ed 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -530,7 +530,7 @@ void drop_slab(void)
drop_slab_node(nid);
}

-static inline int is_page_cache_freeable(struct page *page)
+static inline bool is_page_cache_freeable(struct page *page)
{
/*
* A freeable page cache page is referenced only by the caller
--
2.7.4


From 1584997958824679584@xxx Sat Nov 25 01:04:04 +0000 2017
X-GM-THRID: 1584445094579950277
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread