Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2214044imu; Thu, 29 Nov 2018 01:05:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/VHZql29XNI+2ftf6LYDX5bEMj5dhC/U+SzhGaibYgXFY1GilcrjY+T1rjQSFDq2qwVdw8s X-Received: by 2002:a63:9845:: with SMTP id l5mr550232pgo.142.1543482349979; Thu, 29 Nov 2018 01:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543482349; cv=none; d=google.com; s=arc-20160816; b=I5qS9KiJST1lWBX42OsG44JGVsRuQqPAJbhop0b2WqhwV25GGYHNlpQ9ZN7OOntIFd FKdjjdCGnCqSj7613gs3U0K5MR6nwK8TW5Cu4Ok0J/uDTvoKos6AwZdwjwQYUcLHYuNV 3E6EI2IeYWJLt2Xbk/tDeepzXTiILkBgt6pL+LqwZYBwol7jtAcmJIv9AE2THS3aSBfM NMeAnMnWV8OBOgnm6o2f9V/PTdIwtWMqvMU5LEyiRQSgccycnY0mfyNgh34EGh9wWCp/ us39+hlInxsnCKJny46XFNLcnsBM3dXevaAo4VT5QDjvdIYd76XnayMF3MckA5nfv2Gy URqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DKxEz+GQDyPuS1YXpE6HHZthLEHQEUhO+mx51gKDlk8=; b=I4trQUCPV6627tn75e5xM6MkBKLE7CIVx/sBBQaqtqtwpfP/IubN/qG+qRYRVx3641 QTVpQf1GAOUwg9+yqfDF5JUHtHExK78L2STRHuEgzWxtyKHFMBlMIGU4H/qKD1rNIy6w hi5uqFo/yaK85B4JB2UDy8fE2eoxFbdqKanNJK+FrCOsiTozoIsH4nENKGFqtKYVwFWf zgRGiQLjWAMkLk2QAqYXi79aNeQcBsnHG+ifbxnE2JGixsxJDHPktttTDRhY9fZ9ytvd KA//6BsKS2U1Sc3FvK17LG3/5sU2dR928gaYiahKI9ZlK4bWLV6N+TNIcJuFX81d1xrI FTbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si1462387pfb.231.2018.11.29.01.05.34; Thu, 29 Nov 2018 01:05:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbeK2UJf (ORCPT + 99 others); Thu, 29 Nov 2018 15:09:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:39078 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726565AbeK2UJf (ORCPT ); Thu, 29 Nov 2018 15:09:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CB232ADBF; Thu, 29 Nov 2018 09:04:52 +0000 (UTC) Date: Thu, 29 Nov 2018 10:04:50 +0100 From: Michal Hocko To: Nikolay Borisov Cc: linux-kernel@vger.kernel.org, David Howells , Chris Mason , Josef Bacik , David Sterba , "Yan, Zheng" , Sage Weil , Ilya Dryomov , Steve French , Theodore Ts'o , Andreas Dilger , Mark Fasheh , Joel Becker , Mike Marshall , Martin Brandenburg , Andrew Morton , Mike Rapoport , Matthew Wilcox , Randy Dunlap , YueHaibing , Shakeel Butt , Dan Williams , linux-afs@lists.infradead.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-ext4@vger.kernel.org, ocfs2-devel@oss.oracle.com, devel@lists.orangefs.org, linux-mm@kvack.org Subject: Re: [PATCH 2/2] fs: Don't open-code lru_to_page Message-ID: <20181129090450.GR6923@dhcp22.suse.cz> References: <20181129075301.29087-1-nborisov@suse.com> <20181129075301.29087-2-nborisov@suse.com> <20181129081826.GO6923@dhcp22.suse.cz> <0921bc8f-b899-4925-51f2-a9f45d4c906a@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0921bc8f-b899-4925-51f2-a9f45d4c906a@suse.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 29-11-18 10:50:08, Nikolay Borisov wrote: > > > On 29.11.18 г. 10:18 ч., Michal Hocko wrote: > > On Thu 29-11-18 09:52:57, Nikolay Borisov wrote: > >> There are a bunch of filesystems which essentially open-code lru_to_page > >> helper. Change them to using the helper. No functional changes. > > > > I would just squash the two into a single patch. It makes the first one > > more obvious. Or is there any reason to have them separate? > > No reason, just didn't know how people would react so that's why I chose > to send as two separate. This is a matter of taste I guess. But I usually prefer to have callers along with a new helper in a single patch. This is not a new helper per-se but doing it the same way seems reasonable to me. Not that I would insist of course. You can use my ack for both patch in case you decide to leave it as is. > If I squash them who would be the best person to take them ? Sounds like a mmotm material to me. -- Michal Hocko SUSE Labs