git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Bluetooth] Make use of device_move() for RFCOMM TTY devices
[pandora-kernel.git]
/
mm
/
page-writeback.c
diff --git
a/mm/page-writeback.c
b/mm/page-writeback.c
index
be0efbd
..
f7e088f
100644
(file)
--- a/
mm/page-writeback.c
+++ b/
mm/page-writeback.c
@@
-515,7
+515,7
@@
static int __cpuinit
ratelimit_handler(struct notifier_block *self, unsigned long u, void *v)
{
writeback_set_ratelimit();
ratelimit_handler(struct notifier_block *self, unsigned long u, void *v)
{
writeback_set_ratelimit();
- return
0
;
+ return
NOTIFY_DONE
;
}
static struct notifier_block __cpuinitdata ratelimit_nb = {
}
static struct notifier_block __cpuinitdata ratelimit_nb = {
@@
-549,9
+549,7
@@
void __init page_writeback_init(void)
}
/**
}
/**
- * generic_writepages - walk the list of dirty pages of the given
- * address space and writepage() all of them.
- *
+ * generic_writepages - walk the list of dirty pages of the given address space and writepage() all of them.
* @mapping: address space structure to write
* @wbc: subtract the number of written pages from *@wbc->nr_to_write
*
* @mapping: address space structure to write
* @wbc: subtract the number of written pages from *@wbc->nr_to_write
*
@@
-698,7
+696,6
@@
int do_writepages(struct address_space *mapping, struct writeback_control *wbc)
/**
* write_one_page - write out a single page and optionally wait on I/O
/**
* write_one_page - write out a single page and optionally wait on I/O
- *
* @page: the page to write
* @wait: if true, wait on writeout
*
* @page: the page to write
* @wait: if true, wait on writeout
*
@@
-736,6
+733,16
@@
int write_one_page(struct page *page, int wait)
}
EXPORT_SYMBOL(write_one_page);
}
EXPORT_SYMBOL(write_one_page);
+/*
+ * For address_spaces which do not use buffers nor write back.
+ */
+int __set_page_dirty_no_writeback(struct page *page)
+{
+ if (!PageDirty(page))
+ SetPageDirty(page);
+ return 0;
+}
+
/*
* For address_spaces which do not use buffers. Just tag the page as dirty in
* its radix tree.
/*
* For address_spaces which do not use buffers. Just tag the page as dirty in
* its radix tree.