From: Edward Shishkin <edward.shishkin@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
ReiserFS Development List <reiserfs-devel@vger.kernel.org>
Subject: [patch 1/6] reiser4: adjust to writeback changes
Date: Wed, 07 Jul 2010 02:20:58 +0200 [thread overview]
Message-ID: <4C33C86A.8010701@gmail.com> (raw)
[-- 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;
reply other threads:[~2010-07-07 0:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C33C86A.8010701@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=reiserfs-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.