commit | 83612a948d3bd2e71b110d7e8735661621bd23d9 | [log] [tgz] |
---|---|---|
author | Minchan Kim <[email protected]> | Wed May 03 14:54:30 2017 -0700 |
committer | Linus Torvalds <[email protected]> | Wed May 03 15:52:10 2017 -0700 |
tree | 45b625eba78920d226bd0a59ad6c23a592f73851 | |
parent | e4b82222712ed15813d35204c91429883d27d1d9 [diff] |
mm: remove SWAP_[SUCCESS|AGAIN|FAIL] There is no user for it. Remove it. [[email protected]: use false instead of SWAP_FAIL] Link: http://lkml.kernel.org/r/20170316053313.GA19241@bbox Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Minchan Kim <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 13ed232..43ef2c3 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h
@@ -295,11 +295,4 @@ static inline int page_mkclean(struct page *page) #endif /* CONFIG_MMU */ -/* - * Return values of try_to_unmap - */ -#define SWAP_SUCCESS 0 -#define SWAP_AGAIN 1 -#define SWAP_FAIL 2 - #endif /* _LINUX_RMAP_H */
diff --git a/mm/rmap.c b/mm/rmap.c index 47e8daf..e303fdb 100644 --- a/mm/rmap.c +++ b/mm/rmap.c
@@ -1419,7 +1419,7 @@ static bool try_to_unmap_one(struct page *page, struct vm_area_struct *vma, */ if (unlikely(PageSwapBacked(page) != PageSwapCache(page))) { WARN_ON_ONCE(1); - ret = SWAP_FAIL; + ret = false; page_vma_mapped_walk_done(&pvmw); break; }