Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1780300pxb; Sat, 14 Nov 2020 01:57:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxF4EcaySBLp6IbpwJJGritTvJ3/jVIQWfsCZNKRY7quj1nIWJTgSFYvPo9U1zEBpMdngNs X-Received: by 2002:a50:e041:: with SMTP id g1mr6791813edl.385.1605347854182; Sat, 14 Nov 2020 01:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605347854; cv=none; d=google.com; s=arc-20160816; b=RphjT4ilpEDn7zw2lOpZcijCHJ5HlQGdjs051GaUxO4YMB7b8lbLqNs0gTaQws95rx KO21/79Sjc5B8MvnMv5YlVYpn83yvkXi/fZ4pJQSWOtUYLp5isGrEuYqLCz2gxF0HP+E FJjMLLkXNZnz4KKDs4dFGjVG8EKbpzPbIrRCzH/a4y79uly8lsRsvx6g1ebvlOyHxMrC kBpgL8UD2Nn+12+iaYLqyWlGuW8gd6yZtvdbv1XG1iOB6c7NyvGm1RAZ9+ebqqAWpemH 45CFsvJd5bO1MUJkWdhLiOea3L5sIh/T9Cv5NLLIH4ia0sI408z1X27IgKfOshyeuqiq 4Eig== 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=erjIlYEnBjsn8ZXdx/xEXwAECKWP+LsW58e7nNpOwu8=; b=XmjE34/+MvCsY3GnhbOKpI86qkHhWpGHJoWhY3AdFX0d/Z/sAl/FOVbXBYm+eNUbOF yx2xUL4Zl/aNh8UNk2F6VrlFK/CYvYCzHGXEowpvkX1gHspYdIW4/h6qNIvCvZEElt35 ugx5AZQTyR/IxwWTb2ljLq8p2BQr/MxCXAr4xwDDJxv5hIGr4T13j8wITPUDvGs8laAo yY+RC0mMRJPlfKFtCxDOKlhqfHQUlYU+mGN32UmQzpVjR093US6LbvjepdLeTS++48wT MnhFyBbuYXzymjbKsC00FYt8GTE7LNypYzGlziniNBgVGf++D4SA64EXYJmdQxbAlMWw Ymlw== 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 i22si7705839ejr.184.2020.11.14.01.57.11; Sat, 14 Nov 2020 01:57:34 -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 S1726711AbgKNJxg (ORCPT + 99 others); Sat, 14 Nov 2020 04:53:36 -0500 Received: from verein.lst.de ([213.95.11.211]:49870 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgKNJxg (ORCPT ); Sat, 14 Nov 2020 04:53:36 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 206D168B02; Sat, 14 Nov 2020 10:53:34 +0100 (CET) Date: Sat, 14 Nov 2020 10:53:33 +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 02/16] mm/shmem: Use pagevec_lookup in shmem_unlock_mapping Message-ID: <20201114095333.GC19102@lst.de> References: <20201112212641.27837-1-willy@infradead.org> <20201112212641.27837-3-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112212641.27837-3-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:27PM +0000, Matthew Wilcox (Oracle) wrote: > The comment shows that the reason for using find_get_entries() is now > stale; find_get_pages() will not return 0 if it hits a consecutive run > of swap entries, and I don't believe it has since 2011. pagevec_lookup() > is a simpler function to use than find_get_pages(), so use it instead. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Jan Kara > Reviewed-by: William Kucharski Looks good, Reviewed-by: Christoph Hellwig