Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44864
b: refs/heads/master
c: 5f2a105
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 22, 2006
1 parent 19cb1ea commit 5982377
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: bb4067e34159648d394943d5e2a011f838bff22f
refs/heads/master: 5f2a105d5e33a038a717995d2738434f9c25aed2
3 changes: 2 additions & 1 deletion trunk/mm/truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ void cancel_dirty_page(struct page *page, unsigned int account_size)
WARN_ON(++warncount < 5);
}

if (TestClearPageDirty(page) && account_size) {
if (TestClearPageDirty(page) && account_size &&
mapping_cap_account_dirty(page->mapping)) {
dec_zone_page_state(page, NR_FILE_DIRTY);
task_io_account_cancelled_write(account_size);
}
Expand Down

0 comments on commit 5982377

Please sign in to comment.