Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031036Ab2K3QnT (ORCPT ); Fri, 30 Nov 2012 11:43:19 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:39435 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932347Ab2K3QnR (ORCPT ); Fri, 30 Nov 2012 11:43:17 -0500 MIME-Version: 1.0 In-Reply-To: <20121130143110.GD11004@shiny.int.fusionio.com> References: <20121129191503.GB3490@shiny> <20121129194840.GC3490@shiny> <20121129212931.GD3490@shiny> <20121130024910.GF6434@dastard> <20121130143110.GD11004@shiny.int.fusionio.com> From: Linus Torvalds Date: Fri, 30 Nov 2012 08:42:56 -0800 X-Google-Sender-Auth: Gh0JHqxPqQqLel49-P9TXqcjEt4 Message-ID: Subject: Re: [PATCH v2] Do a proper locking for mmap and block size change To: Chris Mason , Dave Chinner , Linus Torvalds , Chris Mason , Mikulas Patocka , Al Viro , Jens Axboe , Jeff Chua , Lai Jiangshan , Jan Kara , lkml , linux-fsdevel Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 23 On Fri, Nov 30, 2012 at 6:31 AM, Chris Mason wrote: > On Thu, Nov 29, 2012 at 07:49:10PM -0700, Dave Chinner wrote: >> >> Same with mpage_readpages(), so it's not just direct IO that has >> this problem.... > > I guess the good news is that block devices don't have readpages. The > bad news would be that we can't put readpages in without much bigger > changes. Well, the new block-dev branch no longer cares. It basically says "ok, we use inode->i_blkbits, but for raw device accesses we know it's unstable, so we'll just not use it". So both mpage_readpages and direct-IO should be happy. And it actually removed redundant code, so it's all good. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/