Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258971
b: refs/heads/master
c: 99b12e3
h: refs/heads/master
i:
  258969: 355d685
  258967: 0d44296
v: v3
  • Loading branch information
Wu Fengguang authored and Linus Torvalds committed Jul 26, 2011
1 parent 9d4611e commit e13af73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 48f170fb7d7db8789ccc23e051af61f62af5f685
refs/heads/master: 99b12e3d882bc7ebdfe0de381dff3b16d21c38f7
5 changes: 3 additions & 2 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,6 @@ EXPORT_SYMBOL(account_page_dirtied);
void account_page_writeback(struct page *page)
{
inc_zone_page_state(page, NR_WRITEBACK);
inc_zone_page_state(page, NR_WRITTEN);
}
EXPORT_SYMBOL(account_page_writeback);

Expand Down Expand Up @@ -1358,8 +1357,10 @@ int test_clear_page_writeback(struct page *page)
} else {
ret = TestClearPageWriteback(page);
}
if (ret)
if (ret) {
dec_zone_page_state(page, NR_WRITEBACK);
inc_zone_page_state(page, NR_WRITTEN);
}
return ret;
}

Expand Down

0 comments on commit e13af73

Please sign in to comment.