[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1488436765-32350-2-git-send-email-minchan@kernel.org>
Date: Thu, 2 Mar 2017 15:39:15 +0900
From: Minchan Kim <minchan@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: kernel-team@....com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Johannes Weiner <hannes@...xchg.org>,
Michal Hocko <mhocko@...e.com>,
Minchan Kim <minchan@...nel.org>,
"Kirill A . Shutemov" <kirill@...temov.name>
Subject: [RFC 01/11] mm: use SWAP_SUCCESS instead of 0
SWAP_SUCCESS defined value 0 can be changed always so don't rely on
it. Instead, use explict macro.
Cc: Kirill A. Shutemov <kirill@...temov.name>
Signed-off-by: Minchan Kim <minchan@...nel.org>
---
mm/huge_memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 092cc5c..fe2ccd4 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -2114,7 +2114,7 @@ static void freeze_page(struct page *page)
ttu_flags |= TTU_MIGRATION;
ret = try_to_unmap(page, ttu_flags);
- VM_BUG_ON_PAGE(ret, page);
+ VM_BUG_ON_PAGE(ret != SWAP_SUCCESS, page);
}
static void unfreeze_page(struct page *page)
--
2.7.4
Powered by blists - more mailing lists