Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332453
b: refs/heads/master
c: ec4d9f6
h: refs/heads/master
i:
  332451: c1967b2
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Oct 9, 2012
1 parent 12c462b commit 7404f24
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 7ffc0edc49d0df5dac077c1830e2533b27d3a4ed
refs/heads/master: ec4d9f626d5908b6052c2973f37992f1db52e967
3 changes: 2 additions & 1 deletion trunk/mm/truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,12 @@ invalidate_complete_page2(struct address_space *mapping, struct page *page)
if (page_has_private(page) && !try_to_release_page(page, GFP_KERNEL))
return 0;

clear_page_mlock(page);

spin_lock_irq(&mapping->tree_lock);
if (PageDirty(page))
goto failed;

clear_page_mlock(page);
BUG_ON(page_has_private(page));
__delete_from_page_cache(page);
spin_unlock_irq(&mapping->tree_lock);
Expand Down

0 comments on commit 7404f24

Please sign in to comment.