Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2759097lqp; Mon, 25 Mar 2024 08:27:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU41zEwF0CHoeKiEkbAj/jid3t3DRNJcFZPzopoaN8u+gTzy6lbBZOcvtEimeL+k6bBjzw3+59JyALlPxYSkB2mM4CbMcJ7EmAoeaq7oA== X-Google-Smtp-Source: AGHT+IFvvYGA9nhI7e8UwY7Zp6yuQuiZPTotoSoV75kx0JjrJIHhzOds3iLsYAsBHGopVr977wEu X-Received: by 2002:a05:6358:60c9:b0:17f:256f:e87 with SMTP id i9-20020a05635860c900b0017f256f0e87mr8557834rwi.22.1711380473459; Mon, 25 Mar 2024 08:27:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711380473; cv=pass; d=google.com; s=arc-20160816; b=QH+V6V8iEvzi+c3CfcNJ1YX9FUPNBqsYvFjT6ETy674ZzUsmQUoDMyknWXA7w8u+B5 4ej0815p6zIJuFr0gI+uFdEAY0vEbxZ1/hbmtr5+d4aTm730+zhxlN5xjq+SUmmPPMRR dF6Pi/suC6WdcarI6LvqqREov9gSiCBTpWFOFvAWOcxBjrXdfnW9A0D0WYxQ/Xs9u1vS LjzbtxlUzwwMTbPwYysB28OWO1mgRsAo4AY1p4PR4NF2h2LS6j867S27nZBs+M4Dlupq u96Bc753kTqEsRDWrdUdGGYGImNS9unpCVRHAqyHhW79Hnozok+gJtZk21pPkrNOJ7HV ptsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HVD6kyr2yejC7DWiFF8eaBlp4UDIjmyFCY0XmmIOv6Y=; fh=xnrbOlK/Tqdo3udoC2vhFoCTDGLaQwBDa3qbpiJMbkU=; b=RYOgD9nQOMnRpyKsR2usDW1pUkjhVx9IqAQKOkHG7iNQUXRzq/rct3Kk+NjGpg2H2W vbNawSsT1WuuKy3v54AloowNLBX+wAK03ZdtNk9zxXseltfuZttrvgtAsXwgwq9pFAfI S0MFKwRXJBdBCgMwLRVc0D3rOgOR1icVBA1mkIG5C1XyfitwKGvJ63jU/Utitu27fg81 24SYNJiIDfjZs9lX6bntQOgli7FaM1oWg+PTbfdUTgKYM/9ivmQVGkAEaGo02N2OVNaG Ryge9QRx0BVDxjsxQRWvagQpyRFge3MQeLAjypRKiYLZbOB7um3ZENJngO325PmaVlEE vW6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D2w4uE7M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-117019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j20-20020a635514000000b005dc81a30771si7917980pgb.254.2024.03.25.08.27.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:27:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D2w4uE7M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-117019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 0E41F28F3A2 for ; Mon, 25 Mar 2024 15:20:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E32A15749E; Mon, 25 Mar 2024 12:36:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D2w4uE7M" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9C2E143C74 for ; Mon, 25 Mar 2024 12:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711370203; cv=none; b=tRtQJHEpc/98xEnLGk7O5IWl5BNxozNdtdrcgVJS44U+EnYfqexNe2MoJnz+M3gFxINm8FJUunCtwXcU2CvVl3Ub0ldey3QppYFH92bB+O0nwlmiHYNgSg5RB62etxWZlxBYnZNxhRftza+WU0Qrfc3lDYTJfhaZ7p39OaCFOAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711370203; c=relaxed/simple; bh=wdSegOXRShuc9cxtvrB+AzGO2il5sOCLpifFFtVjul4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BudG6hJ9IitRpaoBn0crNY6ADjOkgNBE9ohIo5L3/tDx3NR4zW6gCGRCpUoB/zkXdFsxRe1SvbBfxyQn3U/lkGT0QaWJddZ4BzA4POzrJVzsnZ7/sRDDRdcvzydqJX0roAWS6mwwWYt+bJu9/kJdXt2P+Am/YlxQX+C2HA3n9Pk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=D2w4uE7M; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e6f4ad4c57so3196894b3a.2 for ; Mon, 25 Mar 2024 05:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711370201; x=1711975001; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HVD6kyr2yejC7DWiFF8eaBlp4UDIjmyFCY0XmmIOv6Y=; b=D2w4uE7MdkA0nnQVBEDQL8F8znqbu/3wrAgra1/+gc28u4GkPihmnRlrKDIXDgjqVi cS+bwjvLp4FxlGjBY/ZGxQpoVBrxdeCQBHcxnt11I2rhckuRHbyePmSVg+o/53lgX/rs 5+nT+U8oG1gwhRf/bAa80FlxCx1ux16ppHUMRxUipvyHLYhA8h53fzzDIlATZrEvHdc7 Ito7cr2FnIHvdFRyGxat5YFl5s/eEZ4eJZ6385Wnv1aNsqiZI2U+UD3ysGT9JIzaXCIw XOz5LalOfLV91tr2NlQqkEFhzYCoGFDvffmgSACR7a+NNv3fD6JbE+rGMScQgcClvUKN hDcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711370201; x=1711975001; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HVD6kyr2yejC7DWiFF8eaBlp4UDIjmyFCY0XmmIOv6Y=; b=f0UbhYXNpJ5BGsAJs2mAZOxpZVyUQhy8ubAvkiZDLZqFLD7tASO4Nyva8RUC2MOBPo kcVenI3Q9yVasW6wFmemy8Np12KoN2w7ErGxql0frEqcnttOk0tshnrySAQPiHQAEZSR x6Z7WAciWauH47iS+6lHDRYWJAlTT7vZIAKB6SS61Dq2Mqns4jjpIy9J0YOYa1fxsFHO oOu6K7Vx3YgNnRkV9gWhcLPLLQoZFwhjvhyuvUFBYx68/cLQkQ4J/ot/ptlwzv0AJUOn IxVRak7gTSjK/LYoJvjziPYHEDcBr8PXdRDBZCdJTGyf5H4pznEvvEp3Zg3Oc3iHlxhQ 2q4g== X-Forwarded-Encrypted: i=1; AJvYcCUbcs1Xy1n6egaeZsBhjO9WDVCKDR2euEOISqC0/ejFrVpzOEo+kKKTkt35EBxbZ/BfvJV5x/U7o3JGah01MKPWB4/gpKc/aLX8swwO X-Gm-Message-State: AOJu0YyVCYnAjTNlTYGandAnn5XptRyszspMO/PIeLRQgaP58DSrALEv PQLhvpL/C8XoCOFwCequvK+kswIeNd2HG2d6EKYKiqo7agk3G+3v X-Received: by 2002:a17:903:32ca:b0:1e0:1bc1:478c with SMTP id i10-20020a17090332ca00b001e01bc1478cmr9186425plr.22.1711370201243; Mon, 25 Mar 2024 05:36:41 -0700 (PDT) Received: from [192.168.255.10] ([43.132.141.20]) by smtp.gmail.com with ESMTPSA id h20-20020a170902f7d400b001db3361bc1dsm4575112plw.102.2024.03.25.05.36.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Mar 2024 05:36:40 -0700 (PDT) Message-ID: Date: Mon, 25 Mar 2024 20:36:37 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 05/14] mm/ksm: use folio in stable_node_dup Content-Language: en-US To: David Hildenbrand , Matthew Wilcox , alexs@kernel.org Cc: Andrea Arcangeli , Izik Eidus , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Chris Wright References: <20240322083703.232364-1-alexs@kernel.org> <20240322083703.232364-6-alexs@kernel.org> From: Alex Shi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 3/23/24 1:11 AM, David Hildenbrand wrote: > On 22.03.24 16:57, Matthew Wilcox wrote: >> 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_. > > I wish the coding style would at least recommend something -- I know, different subsystems/files have their own rules. Nowadays, I prefer 2 tabs as well. > Hi David, Thanks for comments, 2 tabs looks good. But just this file keep using more tabs. For the style alignment, let's keep them for now? Thanks