diff options
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index ce5dda6d604b..4de7f02f820b 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -1575,9 +1575,9 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile) | |||
1575 | p->flags &= ~SWP_WRITEOK; | 1575 | p->flags &= ~SWP_WRITEOK; |
1576 | spin_unlock(&swap_lock); | 1576 | spin_unlock(&swap_lock); |
1577 | 1577 | ||
1578 | current->flags |= PF_SWAPOFF; | 1578 | current->flags |= PF_OOM_ORIGIN; |
1579 | err = try_to_unuse(type); | 1579 | err = try_to_unuse(type); |
1580 | current->flags &= ~PF_SWAPOFF; | 1580 | current->flags &= ~PF_OOM_ORIGIN; |
1581 | 1581 | ||
1582 | if (err) { | 1582 | if (err) { |
1583 | /* re-insert swap space back into swap_list */ | 1583 | /* re-insert swap space back into swap_list */ |