From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754482AbeCGOTp (ORCPT ); Wed, 7 Mar 2018 09:19:45 -0500 Received: from mx2.suse.de ([195.135.220.15]:46556 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754279AbeCGOTm (ORCPT ); Wed, 7 Mar 2018 09:19:42 -0500 Date: Wed, 7 Mar 2018 15:17:20 +0100 From: David Sterba To: Matthew Wilcox Cc: Andrew Morton , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Ryusuke Konishi , linux-nilfs@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH v8 06/63] btrfs: Use filemap_range_has_page() Message-ID: <20180307141720.GA23693@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Matthew Wilcox , Andrew Morton , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Ryusuke Konishi , linux-nilfs@vger.kernel.org, linux-btrfs@vger.kernel.org References: <20180306192413.5499-1-willy@infradead.org> <20180306192413.5499-7-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306192413.5499-7-willy@infradead.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 11:23:16AM -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > The current implementation of btrfs_page_exists_in_range() gives the > wrong answer if the workingset code has stored a shadow entry in the > page cache. The filemap_range_has_page() function does not have this > problem, and it's shared code, so use it instead. I'm going to merge this patch. btrfs_page_exists_in_range was full of bugs from the beginning so I'm more than happy to use the shared one. Thanks.