Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292673
b: refs/heads/master
c: 052b198
h: refs/heads/master
i:
  292671: 383ae9b
v: v3
  • Loading branch information
Shaohua Li authored and Linus Torvalds committed Mar 22, 2012
1 parent 67b2a65 commit 0f1f064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1480de0340a8d5f094b74d7c4b902456c9a06903
refs/heads/master: 052b1987faca3606109d88d96bce124851f7c4c2
2 changes: 1 addition & 1 deletion trunk/mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
p->flags |= SWP_SOLIDSTATE;
p->cluster_next = 1 + (random32() % p->highest_bit);
}
if (discard_swap(p) == 0 && (swap_flags & SWAP_FLAG_DISCARD))
if ((swap_flags & SWAP_FLAG_DISCARD) && discard_swap(p) == 0)
p->flags |= SWP_DISCARDABLE;
}

Expand Down

0 comments on commit 0f1f064

Please sign in to comment.