Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755869AbdCMAgL (ORCPT ); Sun, 12 Mar 2017 20:36:11 -0400 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:48618 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755789AbdCMAgB (ORCPT ); Sun, 12 Mar 2017 20:36:01 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 165.244.249.26 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org From: Minchan Kim To: Andrew Morton CC: , , , Johannes Weiner , Michal Hocko , "Kirill A. Shutemov" , Anshuman Khandual , Minchan Kim Subject: [PATCH v1 00/10] make try_to_unmap simple Date: Mon, 13 Mar 2017 09:35:43 +0900 Message-ID: <1489365353-28205-1-git-send-email-minchan@kernel.org> X-Mailer: git-send-email 2.7.4 X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB08/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/13 09:35:57, Serialize by Router on LGEKRMHUB08/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/13 09:35:57, Serialize complete at 2017/03/13 09:35:57 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1372 Lines: 39 Currently, try_to_unmap returns various return value(SWAP_SUCCESS, SWAP_FAIL, SWAP_AGAIN, SWAP_DIRTY and SWAP_MLOCK). When I look into that, it's unncessary complicated so this patch aims for cleaning it up. Change ttu to boolean function so we can remove SWAP_AGAIN, SWAP_DIRTY, SWAP_MLOCK. * from RFC - http://lkml.kernel.org/r/1488436765-32350-1-git-send-email-minchan@kernel.org * Remove RFC tag * add acked-by to some patches * some of minor fixes * based on mmotm-2017-03-09-16-19. Minchan Kim (10): mm: remove unncessary ret in page_referenced mm: remove SWAP_DIRTY in ttu mm: remove SWAP_MLOCK check for SWAP_SUCCESS in ttu mm: make the try_to_munlock void function mm: remove SWAP_MLOCK in ttu mm: remove SWAP_AGAIN in ttu mm: make ttu's return boolean mm: make rmap_walk void function mm: make rmap_one boolean function mm: remove SWAP_[SUCCESS|AGAIN|FAIL] include/linux/ksm.h | 5 ++- include/linux/rmap.h | 21 ++++------- mm/huge_memory.c | 6 ++-- mm/ksm.c | 16 ++++----- mm/memory-failure.c | 26 +++++++------- mm/migrate.c | 4 +-- mm/mlock.c | 6 ++-- mm/page_idle.c | 4 +-- mm/rmap.c | 100 ++++++++++++++++++++------------------------------- mm/vmscan.c | 32 +++++------------ 10 files changed, 82 insertions(+), 138 deletions(-) -- 2.7.4