summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/swapfile.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index cbee03aa74b8..45d25f170660 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -1789,9 +1789,6 @@ void free_swap_and_cache_nr(swp_entry_t entry, int nr)
bool any_only_cache = false;
unsigned long offset;
- if (non_swap_entry(entry))
- return;
-
si = get_swap_device(entry);
if (!si)
return;