linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: Jan Kara <jack@suse.cz>, Christoph Hellwig <hch@infradead.org>,
	Al Viro <viro@ZenIV.linux.org.uk>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	Trond Myklebust <Trond.Myklebust@netapp.com>,
	Benny Halevy <bhalevy@panasas.com>
Subject: Re: [RFC] vfs/inode: For none-block-based filesystems default to sb->s_bdi
Date: Tue, 5 Oct 2010 17:12:10 +0200	[thread overview]
Message-ID: <20101005151210.GC14516@quack.suse.cz> (raw)
In-Reply-To: <4CAB2E29.3080806@panasas.com>

On Tue 05-10-10 09:54:49, Boaz Harrosh wrote:
> On 10/05/2010 09:53 AM, Boaz Harrosh wrote:
> > On 10/05/2010 04:32 AM, Jan Kara wrote:
> >>   Hi Boaz,
> >>
> >> On Mon 04-10-10 18:02:13, Boaz Harrosh wrote:
> >>> Sorry I've just seen Jan's patch:
> >>> From: Jan Kara <jack@suse.cz>
> >>> Date: Mon, 27 Sep 2010 23:56:48 +0200
> >>> Subject: [PATCH] bdi: Initialize inode->i_mapping.backing_dev_info to sb->s_bdi
> >> ...
> >>> That works for me as well. Was it decided how to solve this? Other wise
> >>> I'll need to patch exofs, ASAP for this -rc
> >>   In the end, we'll use Christoph's patch
> >> (http://lkml.org/lkml/2010/9/29/76) changing inode_to_bdi() to be
> >> more conservative and also the warning will be gone. So you don't have to
> >> patch anything...
> >>
> >> 								Honza
> > 
> > I would still like to fix it. Currently each inode->mapping.backing_dev_info in my
> > none-block-filesystem is set to &default_backing_dev_info. This sounds scary!
> > what about the future patches that will schedule a wakup on set_inode_dirty ?
> > Will they not need my proper sb->s_bdi on each ->mapping?
> > 
> > I could do it in the filesystem, but the way the code is now I'll need to
> > set it in 5 different places, or clean up the code with more common code.
> > 
> > That said, I think your (or my) patch makes much more sense. The sb->s_bdi
> > is a much better common default then &default_backing_dev_info. By now
> > is &default_backing_dev_info really needed at all?
> > 
> > I guess I'll have to go head and do it in FS code.
> > 
> 
> BTW: I liked that WARN_ON it exposed a real problem.
  In fact, it exposed too many of them for being so late in the -rc cycle
;). Luckily they were all harmless (at least currently). So for now we are
better off without the warning so that we don't scare users.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

  reply	other threads:[~2010-10-05 15:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04 21:46 [RFC] vfs/inode: For none-block-based filesystems default to sb->s_bdi Boaz Harrosh
2010-10-04 22:02 ` Boaz Harrosh
2010-10-05  8:32   ` Jan Kara
2010-10-05 13:53     ` Boaz Harrosh
2010-10-05 13:54       ` Boaz Harrosh
2010-10-05 15:12         ` Jan Kara [this message]
2010-10-05 15:09       ` Jan Kara
2010-10-05 15:29         ` Boaz Harrosh
2010-10-05 15:50           ` Jan Kara
2010-10-06  8:55           ` Christoph Hellwig

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=20101005151210.GC14516@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=Trond.Myklebust@netapp.com \
    --cc=bhalevy@panasas.com \
    --cc=bharrosh@panasas.com \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    /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;
as well as URLs for NNTP newsgroup(s).