Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1785383pxb; Sat, 14 Nov 2020 02:09:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQIzCcHBBoV73pRhDLLKdTOXvfLxKA6nStc2rSBBabIoAVnylEV5E5NZ7zKQI73IE4sFSf X-Received: by 2002:a17:906:3644:: with SMTP id r4mr6001266ejb.517.1605348587849; Sat, 14 Nov 2020 02:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605348587; cv=none; d=google.com; s=arc-20160816; b=XmvDpOHcmzrfgvziZ3O/899x5gR3DO/z7zConIrd7WNGsyPhxMtLi3jS4W/ckmRQic kbM5M2OuJPczDuLb/jvDVoMxqxRt4lugFC8Kv8azu8zcHyFKlSWDbtUu07gZfphFlt7p OsPRxf/k8mc5ncKbhkvAgmEqUelGOM4+oUr8bC81MjXboCdLSh1bnSXPeC2KxOPcw7G+ DVuT9KfPmbyEZCSu1VPP2CyR0JQOE6pepJkZn4jT86HAxZiKjluWZJCLMUQ5cILLok4q X8ZN/QyuY3TuUsnOyB6tgSD4hiiGWDahysDJOwE1sX9nzm45CavyjZ5N6q4WJyqEuOZ/ lN7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mesOsnVM1DHs4bEVSJmX0DSSHZYODh/r1VDaa4oxIC0=; b=aDtCiiedegyVTf5uQEIgl239Jr4eUKNN7w9m/WlLNObCnLH/xVvSqQIpm6R5KtriCt hAI2r2HTwnTt/jf0l1ad5YUhp13Q3IGKxA7l/EkTVGTRDjncbYQ/hWcPADkEwbeNH/pO //O07Sy72oGqpLthdMkwG2jiNAHHAFhfuGrI7YSzfkthO8rPkZa8ifUmLddneTEWUqEO WuxJuHqhyrrQM5LhIOBu/d1uGKSdhQJO0eGcTWMbTmZdyl2fPmUHA+rJMXA1ul9PPa22 iy+kKEKw15YgB25MmsSWzC04lbE1bXLeXguBCWCfigbB5NSsEiydLgxoWwf4xHyJiA6F RIOQ== ARC-Authentication-Results: i=1; mx.google.com; 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 bd20si7680783edb.98.2020.11.14.02.09.25; Sat, 14 Nov 2020 02:09:47 -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; 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 S1726654AbgKNKHm (ORCPT + 99 others); Sat, 14 Nov 2020 05:07:42 -0500 Received: from verein.lst.de ([213.95.11.211]:49950 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgKNKHl (ORCPT ); Sat, 14 Nov 2020 05:07:41 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 2E87D67373; Sat, 14 Nov 2020 11:07:39 +0100 (CET) Date: Sat, 14 Nov 2020 11:07:38 +0100 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, hughd@google.com, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org, Jan Kara , William Kucharski Subject: Re: [PATCH v4 09/16] mm: Add and use find_lock_entries Message-ID: <20201114100738.GJ19102@lst.de> References: <20201112212641.27837-1-willy@infradead.org> <20201112212641.27837-10-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112212641.27837-10-willy@infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 09:26:34PM +0000, Matthew Wilcox (Oracle) wrote: > We have three functions (shmem_undo_range(), truncate_inode_pages_range() > and invalidate_mapping_pages()) which want exactly this function, > so add it to filemap.c. Before this patch, shmem_undo_range() would > split any compound page which overlaps either end of the range being > punched in both the first and second loops through the address space. > After this patch, that functionality is left for the second loop, which > is arguably more appropriate since the first loop is supposed to run > through all the pages quickly, and splitting a page can sleep. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Jan Kara > Reviewed-by: William Kucharski Looks good, Reviewed-by: Christoph Hellwig