Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1346008lqp; Fri, 22 Mar 2024 12:02:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlm/CjeIpGeKpbO3mVGPAgBpKLszvXmfFLHROLHOqVQyvfHZ6EPWZttu/z1/83QpyQ1KoAy8xvY9dnKDVaE9ku2aYitSt8eRjW1Gktgg== X-Google-Smtp-Source: AGHT+IHnTGH3GyrmFZKbPPeNwpxYsbvxNqXCB/Q/kfH1sec938h5eOrsB+hoLTGyzTff6WNWdHKP X-Received: by 2002:a05:6a20:2a1c:b0:1a3:50fb:4f7c with SMTP id e28-20020a056a202a1c00b001a350fb4f7cmr471813pzh.29.1711134170380; Fri, 22 Mar 2024 12:02:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711134170; cv=pass; d=google.com; s=arc-20160816; b=t0Eyo7Y2fq2nHATlQG4PS+dIjt6CciPbKJluITLbqNBQmLpYt5S7scCQkNrDJ6XWaC LrTu44aVTT+2sRH+tnrIgUmLJyWnlEO8oUxTRa0u7JY9B2ahr/9HzBvOwwRP4snId18T fxUk1aRZfpQm+f+q0JFdt8dnLF7p0gWMGlFLWJHVulbDYm0hPsOH5p/oWXCnxixh4v8E VuRQ3/d7OskFzlxh94MEOxoP91sPEBgmIzGRctBi1CSCBPzVg+tezYNmeOpdd1MtJp7+ n6zls0hexpxv469GZ+AKYm9ERd40HYbOfT0VzZEoyC1/pW/7Lx+oV31fCpiDB232z0SJ N6mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/oQUXIBl53Mlil81fCqMW0brlHyo5VL3xpRRddwKmb8=; fh=/apDblYSbH1yqxejbbPcvi5FufgRo6T7gjlq5W8K/T0=; b=0pjlnwOkM6tt/+zax81hlZ2uonJFES82DMqa6BwxHqaD5AY09hBtUFHexpS2sBv9eW eMe7qEJNG+vUl/SaqBR9YXv66QBiRre+d2zYX4EWpN/B0DlpMo6rqIUoQA26cmi3VBxg sblw8Hzl5EEDtcnJObw4EC1FYkPkMRmAbN0v/8pk/0VNu4Z4nmDdUHPtADsfLC7FUvdu U+bZODczoTs+GWS8TU/jPmlp5mG+0BZroAsN/F/Xb4Jo1BVq9YQfTtRxnCFBbC024EC3 rOEGy2x/YutHy4pMJLbxzE3DD0jNKPZg/MXNZnIfQKHpmKuI3WH/KqmHJhP+JfKtXf58 qS7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Dfip3h9f; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-111735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111735-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f11-20020a6547cb000000b005d8fdbbd5d7si2493072pgs.606.2024.03.22.12.02.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 12:02:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Dfip3h9f; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-111735-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111735-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5DC61280CF3 for ; Fri, 22 Mar 2024 15:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46FD456B68; Fri, 22 Mar 2024 15:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Dfip3h9f" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74BC955C0A for ; Fri, 22 Mar 2024 15:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711123062; cv=none; b=BJDUPDLuiBMYMkH2+OZxBsvHEHjtUhgrbNQiumYaetoo9FbjUHUoM2/0e3oxE5Ux1WUUHKF3SM2Z1AzDAvWNK5JBTGFyCOgPSHX1Cr7418Occ1kTxgD+zV9iSr7Vcg4LiCZgrs6Naxd/l605g7gU2RX9Zume1NZZDP3qgvXmI+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711123062; c=relaxed/simple; bh=OOqRWLCwcMBctaUSCEcveKG+6vyWUvCuuApGjdYgoeM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OcRcuJckTO24YJ6IzUgBTGxcfF0XUNhF03fVysH06+WSF4v67e1hgpp7GNBtJeGXrhLpeuRyWMd6XEpHj4N8Q+0p9zUDsZHDUhz/gi0QDuIz5t55TJShVtGr4to0qS3swclarrEzw8qryqTIKXlHqO0Xp6Gc6QVrnnPbL1VMwqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Dfip3h9f; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=/oQUXIBl53Mlil81fCqMW0brlHyo5VL3xpRRddwKmb8=; b=Dfip3h9f5/k0lWKkF1ww8fpTV3 bCMypAP8UClKRcLyeJVSWZGvIzPtfVBu4HnSFG7loJHHQQaO2XfczYPNzps7ExwUQGNN0UfUED2Xv 3KFusmZyHloi45rJNxFvk2M8poTv2wvl4Io1bNgeRh5CKH/28mMlxHQFHPATVTknJaUie7LomR+AB YoOfHSobuCyquO/pow5Ba7Xqj46OnNMGrSVLmoYGVGSzivv2Lsvt8rrrtJxurm66/hL+/eDDVzeeq aOhkE83l0giNxVTzF6fHRqk7AAis8A/5NKAP9157seT2YrE3Qh3dT6yuAi9lMogyuTAeXqFgNi7eJ 2c/P6X6g==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnhGy-00000009j4x-1CCr; Fri, 22 Mar 2024 15:57:36 +0000 Date: Fri, 22 Mar 2024 15:57:36 +0000 From: Matthew Wilcox To: alexs@kernel.org Cc: Andrea Arcangeli , Izik Eidus , david@redhat.com, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Chris Wright Subject: Re: [PATCH v2 05/14] mm/ksm: use folio in stable_node_dup Message-ID: References: <20240322083703.232364-1-alexs@kernel.org> <20240322083703.232364-6-alexs@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322083703.232364-6-alexs@kernel.org> On Fri, Mar 22, 2024 at 04:36:52PM +0800, alexs@kernel.org wrote: > -static struct page *stable_node_dup(struct ksm_stable_node **_stable_node_dup, > - struct ksm_stable_node **_stable_node, > - struct rb_root *root, > - bool prune_stale_stable_nodes) > +static void *stable_node_dup(struct ksm_stable_node **_stable_node_dup, > + struct ksm_stable_node **_stable_node, > + struct rb_root *root, > + bool prune_stale_stable_nodes) Do we really have to go through this void * stage? Also, please stop reindenting the arguments. I tend to just switch to two tabs, but lining them up with the opening bracket leads to extra churn. Either leave them alone for the entire series or switch _once_.