mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
To: Fengguang Wu <wfg@mail.ustc.edu.cn>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	jfs-discussion@lists.sourceforge.net,
	Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: [PATCH] jfs: clear PAGECACHE_TAG_DIRTY for no-write pages
Date: Sat, 29 Dec 2007 09:20:37 -0600	[thread overview]
Message-ID: <1198941637.8421.8.camel@norville.austin.ibm.com> (raw)
In-Reply-To: <E1J8UbJ-0007Be-E3@localhost>


On Sat, 2007-12-29 at 13:51 +0800, Fengguang Wu wrote:
> On Fri, Dec 28, 2007 at 10:50:59PM -0600, Dave Kleikamp wrote:
> > 
> > On Sat, 2007-12-29 at 10:21 +0800, Fengguang Wu wrote:

> > > This line should be moved below:
> > > > +	set_page_writeback(page);
> > 
> > No.  set_page_writeback() needs to be called before submit_bio() is
> > called.
> 
> Ah yes.
> 
> > I don't think there is any harm in calling set_page_writeback(),
> > redirty_page_for_writeback() and end_page_writeback() in the case where
> > there is no I/O to submit, and some dirty data cannot be written.  It is
> > consistent with what happens in __block_write_full_page().
> > 
> > It's also possible that some part of the page was written, and another
> > part cannot be, causing the page to be redirtied.
> 
> You are right. I revisited the code and there's nothing wrong with
> your patch :-)

Fengguang,

Thank you for all your help with this bug.  I've been on vacation and
hadn't had much time to look at it.  We'd probably still be scratching
our heads wondering where the problem was without your hard work.

Shaggy
> 
> Regards,
> Fengguang
> 
-- 
David Kleikamp
IBM Linux Technology Center


      parent reply	other threads:[~2007-12-29 15:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1J8AC5-0002BE-RP@localhost>
2007-12-28  8:03 ` Fengguang Wu
2007-12-28 11:33 ` Peter Zijlstra
     [not found]   ` <E1J8Dbo-0001e2-1T@localhost>
2007-12-28 11:42     ` Fengguang Wu
2007-12-28 16:25   ` Dave Kleikamp
2007-12-28 16:53     ` Dave Kleikamp
     [not found]       ` <E1J8RJw-0001ge-DP@localhost>
2007-12-29  2:21         ` Fengguang Wu
2007-12-29  4:50         ` Dave Kleikamp
     [not found]           ` <E1J8UbJ-0007Be-E3@localhost>
2007-12-29  5:51             ` Fengguang Wu
2007-12-29 15:20             ` Dave Kleikamp [this message]

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=1198941637.8421.8.camel@norville.austin.ibm.com \
    --to=shaggy@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=jfs-discussion@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=peterz@infradead.org \
    --cc=wfg@mail.ustc.edu.cn \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®