From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by kanga.kvack.org (Postfix) with ESMTP id 9DBEE6B0032 for ; Wed, 14 Jan 2015 08:00:27 -0500 (EST) Received: by mail-wi0-f176.google.com with SMTP id z2so2258909wiv.3 for ; Wed, 14 Jan 2015 05:00:27 -0800 (PST) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id da1si3399444wib.57.2015.01.14.05.00.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 05:00:25 -0800 (PST) Date: Wed, 14 Jan 2015 14:00:21 +0100 From: Jan Kara Subject: Re: [PATCH 05/12] block_dev: get bdev inode bdi directly from the block device Message-ID: <20150114130021.GG10215@quack.suse.cz> References: <1421228561-16857-1-git-send-email-hch@lst.de> <1421228561-16857-6-git-send-email-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1421228561-16857-6-git-send-email-hch@lst.de> Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Hellwig Cc: Jens Axboe , David Howells , Tejun Heo , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org On Wed 14-01-15 10:42:34, Christoph Hellwig wrote: > Directly grab the backing_dev_info from the request_queue instead of > detouring through the address_space. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Tejun Heo Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > fs/fs-writeback.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c > index 2d609a5..e8116a4 100644 > --- a/fs/fs-writeback.c > +++ b/fs/fs-writeback.c > @@ -69,10 +69,10 @@ EXPORT_SYMBOL(writeback_in_progress); > static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) > { > struct super_block *sb = inode->i_sb; > - > +#ifdef CONFIG_BLOCK > if (sb_is_blkdev_sb(sb)) > - return inode->i_mapping->backing_dev_info; > - > + return blk_get_backing_dev_info(I_BDEV(inode)); > +#endif > return sb->s_bdi; > } > > -- > 1.9.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Jan Kara SUSE Labs, CR -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org