* [patch 1/6] reiser4: adjust to writeback changes
@ 2010-07-07 0:20 Edward Shishkin
0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2010-07-07 0:20 UTC (permalink / raw)
To: Andrew Morton, ReiserFS Development List
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: reiser4-adjust-writeback-changes.patch --]
[-- Type: text/plain, Size: 1967 bytes --]
Adjust reiser4 to the latest vfs changes:
. Change reiser4_writeback_inodes();
. Use writeback_inodes_wb() instead of writeback_inodes_wbc().
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
fs/reiser4/entd.c | 5 ++---
fs/reiser4/page_cache.c | 3 ---
fs/reiser4/super_ops.c | 5 +++--
3 files changed, 5 insertions(+), 8 deletions(-)
--- mmotm.orig/fs/reiser4/entd.c
+++ mmotm/fs/reiser4/entd.c
@@ -237,14 +237,13 @@ static void entd_flush(struct super_bloc
(ENTD_CAPTURE_APAGE_BURST << PAGE_CACHE_SHIFT);
tmp = rq->wbc->nr_to_write;
- assert("edward-1561", super == rq->wbc->sb);
-
rq->mapping->a_ops->writepages(rq->mapping, rq->wbc);
if (rq->wbc->nr_to_write > 0) {
rq->wbc->range_start = 0;
rq->wbc->range_end = LLONG_MAX;
- writeback_inodes_wbc(rq->wbc);
+ writeback_inodes_wb(&rq->mapping->backing_dev_info->wb,
+ rq->wbc);
}
rq->wbc->nr_to_write = ENTD_CAPTURE_APAGE_BURST;
--- mmotm.orig/fs/reiser4/page_cache.c
+++ mmotm/fs/reiser4/page_cache.c
@@ -492,9 +492,6 @@ int reiser4_writepage(struct page *page,
*/
assert("vs-828", PageLocked(page));
- wbc->sb = page->mapping->host->i_sb;
- wbc->bdi = page->mapping->backing_dev_info;
-
return write_page_by_ent(page, wbc);
}
--- mmotm.orig/fs/reiser4/super_ops.c
+++ mmotm/fs/reiser4/super_ops.c
@@ -391,7 +391,8 @@ static void reiser4_clear_inode(struct i
*/
static int reiser4_writeback_inodes(struct super_block *super,
struct bdi_writeback *wb,
- struct writeback_control *wbc)
+ struct writeback_control *wbc,
+ bool only_this_sb)
{
int ret;
long to_write;
@@ -415,7 +416,7 @@ static int reiser4_writeback_inodes(stru
* dirty pages into transactions if they were not yet.
*/
spin_lock(&inode_lock);
- ret = generic_writeback_sb_inodes(super, wb, wbc);
+ ret = generic_writeback_sb_inodes(super, wb, wbc, only_this_sb);
spin_unlock(&inode_lock);
wbc->nr_to_write = to_write;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-07 0:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 0:20 [patch 1/6] reiser4: adjust to writeback changes Edward Shishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).