Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347227
b: refs/heads/master
c: 031da73
h: refs/heads/master
i:
  347225: f4e66a6
  347223: 39025b2
v: v3
  • Loading branch information
NeilBrown authored and Artem Bityutskiy committed Dec 13, 2012
1 parent 26b1846 commit 8b6de8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f2a6a52560ad8d85710aabd92b7a3239b3a6b07
refs/heads/master: 031da73fca29ebba3eea5a512746e01d52e542cd
2 changes: 2 additions & 0 deletions trunk/drivers/mtd/devices/block2mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static int _block2mtd_erase(struct block2mtd_dev *dev, loff_t to, size_t len)
memset(page_address(page), 0xff, PAGE_SIZE);
set_page_dirty(page);
unlock_page(page);
balance_dirty_pages_ratelimited(mapping);
break;
}

Expand Down Expand Up @@ -152,6 +153,7 @@ static int _block2mtd_write(struct block2mtd_dev *dev, const u_char *buf,
memcpy(page_address(page) + offset, buf, cpylen);
set_page_dirty(page);
unlock_page(page);
balance_dirty_pages_ratelimited(mapping);
}
page_cache_release(page);

Expand Down

0 comments on commit 8b6de8e

Please sign in to comment.