Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242289
b: refs/heads/master
c: 9b6096a
h: refs/heads/master
i:
  242287: 7f6b536
v: v3
  • Loading branch information
Shaohua Li authored and Jens Axboe committed Mar 17, 2011
1 parent 50edb4a commit 584ff78
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 167400d34070ebbc408dc0f447c4ddb4bf837360
refs/heads/master: 9b6096a65f99a89dfd8328c4e469e7b53b3ae04a
8 changes: 7 additions & 1 deletion trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,11 +1039,17 @@ static int __writepage(struct page *page, struct writeback_control *wbc,
int generic_writepages(struct address_space *mapping,
struct writeback_control *wbc)
{
struct blk_plug plug;
int ret;

/* deal with chardevs and other special file */
if (!mapping->a_ops->writepage)
return 0;

return write_cache_pages(mapping, wbc, __writepage, mapping);
blk_start_plug(&plug);
ret = write_cache_pages(mapping, wbc, __writepage, mapping);
blk_finish_plug(&plug);
return ret;
}

EXPORT_SYMBOL(generic_writepages);
Expand Down

0 comments on commit 584ff78

Please sign in to comment.