diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index a472bcd4b061..1002f473f497 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -1789,7 +1789,7 @@ static int do_wp_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
1789 | * not dirty accountable. | 1789 | * not dirty accountable. |
1790 | */ | 1790 | */ |
1791 | if (PageAnon(old_page)) { | 1791 | if (PageAnon(old_page)) { |
1792 | if (!TestSetPageLocked(old_page)) { | 1792 | if (trylock_page(old_page)) { |
1793 | reuse = can_share_swap_page(old_page); | 1793 | reuse = can_share_swap_page(old_page); |
1794 | unlock_page(old_page); | 1794 | unlock_page(old_page); |
1795 | } | 1795 | } |