Skip to contentSkip to conversation

mm: remove SWAP_[SUCCESS|AGAIN|FAIL]

PATCH New [email protected] 1 participant 1 message May 3, 2017 MM rmap

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 57/102 mm: remove SWAP_[SUCCESS|AGAIN|FAIL]

From: Minchan Kim <[email protected]>
Subject: mm: remove SWAP_[SUCCESS|AGAIN|FAIL]

There is no user for it. Remove it.

[[email protected]: use false instead of SWAP_FAIL]
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]>

---

 include/linux/rmap.h |    7 -------
 mm/rmap.c            |    2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)
include/linux/rmap.h renamed from include/linux/rmap.h~mm-remove-swap_ +0 -6
diff -puN include/linux/rmap.h~mm-remove-swap_ include/linux/rmap.h
@@ -295,11 +295,4 @@ static inline int page_mkclean(struct pa
 
 #endif	/* CONFIG_MMU */
 
-/*
- * Return values of try_to_unmap
- */
-#define SWAP_SUCCESS	0
-#define SWAP_AGAIN	1
-#define SWAP_FAIL	2