Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp85536pxf; Wed, 10 Mar 2021 00:46:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPLpGamAfeYPAbPVWU8zwIWIytyvmqGZnTiiut3KBEMUo95Mf8sbq8k8G2+/lOsc2q58Px X-Received: by 2002:a50:fe06:: with SMTP id f6mr2027503edt.349.1615365976589; Wed, 10 Mar 2021 00:46:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615365976; cv=none; d=google.com; s=arc-20160816; b=I6xoaK1pGkDoW7/7c1nAPXDOewQmY1njnVZK+jcAWVtk0OMbauxpIniGMrVUmN04fD D1EKL0ZTqTST1athH4nF44mP+HHs0wJzauE3FWI+H/7l6t82jjK134G7Ucjm4vJHpFYZ rEwnlycizjHUzu7AoeZReOtdFyl9PjeR0RfMnqMTAbrj1Av/ObWbf6a9MZlc4NSrG+Lo B3V3VRPuqw8uATAATcPlGGa/8U9rA+WZr94npBriVjkMfUIwLOOnVGDCnb3+nqXo99TR tksXLUQk2L7NfAXG+CiwjpkZ3Vi73wHwJWAu5ryB7fQOem4b1lcF/sFkadJsAAZc9ZWF +a5Q== 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=vuo0YO0EmNV+mXqkprYzB4nCqf8LGaGX/f4JDhgk+/c=; b=sxeoheuYyWrScATssgpCawlWTWdX+Y+PfqDDn56EikDp+C8Ah/IU0r75AGk2FDGmQE aHXzTc8iuYy2et0wUJxfelm52Z45fdozDym/JuHHOxaMENjmCdT+rVY4kk5WCaUjoV0l zYdorMXCXjGJ2R5NiYqbr+dEwAqtHmdId6esTkhHK0QKKveyALZTbJfSuclKMuwcHcqQ 5CzFPazINrLV4AlK22eBDQdraIHpJwkAWWsYe6wfl6R0Nal8O3Zzx1gGEAwN52GkNWEn dmoYtWwY9uANwZi0Z7homT2O8S95GxDDBVTz2llZT4IChASysjK2M2m4uCuamoRdUims dn2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=p5AuWvLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 m22si11213052ejr.463.2021.03.10.00.45.54; Wed, 10 Mar 2021 00:46:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=p5AuWvLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbhCJIoh (ORCPT + 99 others); Wed, 10 Mar 2021 03:44:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbhCJIn6 (ORCPT ); Wed, 10 Mar 2021 03:43:58 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36DBBC06174A; Wed, 10 Mar 2021 00:43:35 -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=vuo0YO0EmNV+mXqkprYzB4nCqf8LGaGX/f4JDhgk+/c=; b=p5AuWvLaCuU/C/3qq+kaSkAvEX vKtvFB/7Pp0l8OQ3Hjlgt+Gdlmojl2GcVfJbK4oNDb9uSkjuuv+5a031m7RPru5IcZ4nDfGvAcPLP /o4zZS1IoPw8SJiu9OZJ0Faw4XwOc/+hE7aaJPNXsN38Rncqkt3JkXuCv1yFBvP3t3Fnwn8PMRTSb fOURb9Y8kLuFYaShP/FZCe6WHdluCvBaxzGooPslnZlVQyZzqVgJTgt6AMwprhJyZWlwvJYkLMIMC d2+KDFOGqNEsTMq2HRRaKT0CRvQEdZ3/Z/YXqWFBshlfHqLYe81+af++AJslw0/Tk8BFBQVLYj/+a FrK7yhRA==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lJuR7-002uDa-4t; Wed, 10 Mar 2021 08:43:24 +0000 Date: Wed, 10 Mar 2021 08:43:21 +0000 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: Andrew Morton , linux-mm@kvack.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bcache@vger.kernel.org, linux-nvdimm@lists.01.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH v2] include: Remove pagemap.h from blkdev.h Message-ID: <20210310084321.GA682482@infradead.org> References: <20210309195747.283796-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210309195747.283796-1-willy@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 07:57:47PM +0000, Matthew Wilcox (Oracle) wrote: > My UEK-derived config has 1030 files depending on pagemap.h before > this change. Afterwards, just 326 files need to be rebuilt when I > touch pagemap.h. I think blkdev.h is probably included too widely, > but untangling that dependency is harder and this solves my problem. > x86 allmodconfig builds, but there may be implicit include problems > on other architectures. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > v2: Fix CONFIG_SWAP=n implicit use of pagemap.h by swap.h. Increases > the number of files from 240, but that's still a big win -- 68% > reduction instead of 77%. Looks good. I suspect blkdev.h also has penty of other includes that aren't needed either.. Reviewed-by: Christoph Hellwig