Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107173
b: refs/heads/master
c: a4b526b
h: refs/heads/master
i:
  107171: 5134bbf
v: v3
  • Loading branch information
Martin Schwidefsky committed Aug 1, 2008
1 parent c277def commit 27f09b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 934b2857cc576ae53c92a66e63fce7ddcfa74691
refs/heads/master: a4b526b3ba6353cd89a38e41da48ed83b0ead16f
3 changes: 0 additions & 3 deletions trunk/include/linux/page-flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ static inline void __SetPageUptodate(struct page *page)
{
smp_wmb();
__set_bit(PG_uptodate, &(page)->flags);
#ifdef CONFIG_S390
page_clear_dirty(page);
#endif
}

static inline void SetPageUptodate(struct page *page)
Expand Down
3 changes: 2 additions & 1 deletion trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ void page_remove_rmap(struct page *page, struct vm_area_struct *vma)
* Leaving it set also helps swapoff to reinstate ptes
* faster for those pages still in swapcache.
*/
if (page_test_dirty(page)) {
if ((!PageAnon(page) || PageSwapCache(page)) &&
page_test_dirty(page)) {
page_clear_dirty(page);
set_page_dirty(page);
}
Expand Down

0 comments on commit 27f09b0

Please sign in to comment.