From: Jeff Layton Subject: Re: [PATCH] cifs: set backing_dev_info on new S_ISREG inodes Date: Thu, 30 Sep 2010 07:26:15 -0400 Message-ID: <20100930072615.3eb07575@barsoom.rdu.redhat.com> References: <1285768194-29595-1-git-send-email-jlayton@redhat.com> <20100929231730.GA6921@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org To: Christoph Hellwig Return-path: In-Reply-To: <20100929231730.GA6921-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Wed, 29 Sep 2010 19:17:30 -0400 Christoph Hellwig wrote: > On Wed, Sep 29, 2010 at 09:49:54AM -0400, Jeff Layton wrote: > > Testing on very recent kernel (2.6.36-rc6) made this warning pop: > > > > WARNING: at fs/fs-writeback.c:87 inode_to_bdi+0x65/0x70() > > Hardware name: > > Dirtiable inode bdi default != sb bdi cifs > > > > ...the following patch fixes it and seems to be the obviously correct > > thing to do for cifs. > > See my patch in the btrfs/default_backing_dev_info thread for the real > fix for the underlying issue. But your patch won't harm either way. > Thanks Christoph. I looked to NFS as a model for this, which does a very similar thing in nfs_fhget. It's probably reasonable for us to set this here in case there is further churn in the VFS for this sort of thing. -- Jeff Layton