Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp415862pxb; Wed, 20 Jan 2021 10:01:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJz44zjoEZyLsTLY3pVFpF9Ak/yCG2PkkNoCww1fh0fA7GItRG0IBq89yQnB3u+nR1er6i63 X-Received: by 2002:a17:906:5958:: with SMTP id g24mr6711230ejr.377.1611165660717; Wed, 20 Jan 2021 10:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611165660; cv=none; d=google.com; s=arc-20160816; b=qZGE/10+eezUHJO3vwLZKi3fJ940hB8UNFI62IMalb+QHTTmz84TH2K7YANyP9Y4fw Ef3RBcWD524xE6Hxn9hT5D/5eKeuNitfm5zTpg48TUQjVVev2O2I9vkjabDXZnAtdt5A xiBOCzO9Jf0iQawNDzdYYObxZakoOKz7hz84txuk/6E5pRnwEfQKL3wUWSxW1ow78AQ8 O9qdrIslchTKfO0PN0AmP+6pnovu+H7tlzDGlvGa2WgeM/Mk7JPzmWSvk4/r2u6FWE7r RBZ4Pkv7OrCJEO9rc6sxrL0I6A2FnJx3d3Hg1MtnkM2eYNlQFP5yyrTSPU4oIWSqZ59k EkGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pUnziRy/TcrH98npVbZkez1LzWGAocfrqdjT4NTwcIw=; b=Mte8urQ/qWfW1hFoHinsY4f8LF7Sclqjvo07NJ9WU8bUHPrTxzkGRyAtgQCyGrOHW+ FSphlupi51oYiiai+pgchQdsZRngbOcEnomcSxnsAcMIbI2Yrlm2Bz3Kif18NfiPx3kY XM8jgmmrPWLql65cUbp/ol1nwWE8KWYXgxvcZ5YVRtx1f56SajtOo2elUKEDji7Q0KKS cVYOkPS9mgxYYNqDdP6tX2BFEvYNkrZgVa4xo1w5IYeFVJf2P48jxWEDD7FDsiiIks8f YBeZouNxKTfKaR5gd16Aij6JEQjvA1gW/YBgcjoo7MUv61kRkoZGgAOitzRqTKcnN4Du oO8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=skUQ+xxS; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si1161309edp.209.2021.01.20.10.00.31; Wed, 20 Jan 2021 10:01:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=skUQ+xxS; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732396AbhATR6c (ORCPT + 99 others); Wed, 20 Jan 2021 12:58:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729050AbhATR6A (ORCPT ); Wed, 20 Jan 2021 12:58:00 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7962AC061757; Wed, 20 Jan 2021 09:57:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pUnziRy/TcrH98npVbZkez1LzWGAocfrqdjT4NTwcIw=; b=skUQ+xxSKtRRyAldNILOAj5MVs uowju0zOwSmH1OMrQWg/aWfjCTQUmlLzum+Lxg8Ueu+yd8m5xjBF4UP7wtrqTPKAsePZ+E4rpHZK/ MLKeJ2J8rHRTyEGxZnT9gtHgVZ7b62DJl01FoxsKcRiLO/lMfjR7xlQ6Q13Wf/Ce8wepxaCtKrISG +I8AAfVArrIa8IPwwF9gg4tJIEkn++CLj8Jl7EE2XxggIaTTMdizW9VxwT0WJqfhGuPKOhGavbIy1 AyXRBugLXjFCmNkdRNJQlfw2z9qgH1AiZE02mwVKAOHqgfKSWD4OwenLQnA0CIEwuoLV0t33gNv17 uHV9vK9g==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l2HiS-00G1HZ-K2; Wed, 20 Jan 2021 17:56:26 +0000 Date: Wed, 20 Jan 2021 17:56:24 +0000 From: Matthew Wilcox To: Christoph Hellwig Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH 2/3] mm: Provide address_space operation for filling pages for read Message-ID: <20210120175624.GL2260413@casper.infradead.org> References: <20210120160611.26853-1-jack@suse.cz> <20210120160611.26853-3-jack@suse.cz> <20210120162001.GB3790454@infradead.org> <20210120172705.GC24063@quack2.suse.cz> <20210120172836.GA3809508@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210120172836.GA3809508@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jan 20, 2021 at 05:28:36PM +0000, Christoph Hellwig wrote: > On Wed, Jan 20, 2021 at 06:27:05PM +0100, Jan Kara wrote: > > This would mean pulling i_mmap_sem out from ext4/XFS/F2FS private inode > > into the VFS inode. Which is fine by me but it would grow struct inode for > > proc / tmpfs / btrfs (although for btrfs I'm not convinced it isn't > > actually prone to the race and doesn't need similar protection as xfs / > > ext4) so some people may object. > > The btrfs folks are already looking into lifting it to common code. > > Also I have a patch pending to remove a list_head from the inode to > counter the size increase :) We can get rid of nrexceptional as well: https://lore.kernel.org/linux-fsdevel/20201026151849.24232-1-willy@infradead.org/ We can also reduce the size of the rwsem by one word by replacing the list_head with a single pointer. https://git.infradead.org/users/willy/pagecache.git/shortlog/refs/heads/wlist (haven't touched it in almost four years, seemed to have a bug last time i looked at it).