diff options
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index be0efbde4994..f7e088f5a309 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -515,7 +515,7 @@ static int __cpuinit | |||
515 | ratelimit_handler(struct notifier_block *self, unsigned long u, void *v) | 515 | ratelimit_handler(struct notifier_block *self, unsigned long u, void *v) |
516 | { | 516 | { |
517 | writeback_set_ratelimit(); | 517 | writeback_set_ratelimit(); |
518 | return 0; | 518 | return NOTIFY_DONE; |
519 | } | 519 | } |
520 | 520 | ||
521 | static struct notifier_block __cpuinitdata ratelimit_nb = { | 521 | static struct notifier_block __cpuinitdata ratelimit_nb = { |
@@ -549,9 +549,7 @@ void __init page_writeback_init(void) | |||
549 | } | 549 | } |
550 | 550 | ||
551 | /** | 551 | /** |
552 | * generic_writepages - walk the list of dirty pages of the given | 552 | * generic_writepages - walk the list of dirty pages of the given address space and writepage() all of them. |
553 | * address space and writepage() all of them. | ||
554 | * | ||
555 | * @mapping: address space structure to write | 553 | * @mapping: address space structure to write |
556 | * @wbc: subtract the number of written pages from *@wbc->nr_to_write | 554 | * @wbc: subtract the number of written pages from *@wbc->nr_to_write |
557 | * | 555 | * |
@@ -698,7 +696,6 @@ int do_writepages(struct address_space *mapping, struct writeback_control *wbc) | |||
698 | 696 | ||
699 | /** | 697 | /** |
700 | * write_one_page - write out a single page and optionally wait on I/O | 698 | * write_one_page - write out a single page and optionally wait on I/O |
701 | * | ||
702 | * @page: the page to write | 699 | * @page: the page to write |
703 | * @wait: if true, wait on writeout | 700 | * @wait: if true, wait on writeout |
704 | * | 701 | * |
@@ -737,6 +734,16 @@ int write_one_page(struct page *page, int wait) | |||
737 | EXPORT_SYMBOL(write_one_page); | 734 | EXPORT_SYMBOL(write_one_page); |
738 | 735 | ||
739 | /* | 736 | /* |
737 | * For address_spaces which do not use buffers nor write back. | ||
738 | */ | ||
739 | int __set_page_dirty_no_writeback(struct page *page) | ||
740 | { | ||
741 | if (!PageDirty(page)) | ||
742 | SetPageDirty(page); | ||
743 | return 0; | ||
744 | } | ||
745 | |||
746 | /* | ||
740 | * For address_spaces which do not use buffers. Just tag the page as dirty in | 747 | * For address_spaces which do not use buffers. Just tag the page as dirty in |
741 | * its radix tree. | 748 | * its radix tree. |
742 | * | 749 | * |