Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp30582rdb; Thu, 21 Dec 2023 01:43:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBuThvbH5A3ODvHJv25ZQxyObrqz6d7RTYy2L4aCHCpIk3DtvGRacseOsenimWY/agpHUF X-Received: by 2002:a50:ab1b:0:b0:553:b1aa:9a6a with SMTP id s27-20020a50ab1b000000b00553b1aa9a6amr865100edc.17.1703151805028; Thu, 21 Dec 2023 01:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703151805; cv=none; d=google.com; s=arc-20160816; b=NyWHK8w8VKSDc1YZv93kU+AwtkBrx+MpP263Y0qsS0Xk/v+jyALasuYcprOvsL5U0H UuwfsXH4t0+uoFZ/dIo6/7ToKLLNLIoq6rjzTGoA8EoU9lTUyzL3XfNSMf5wQVhpuzke xdCLc/o0PFnWy7wVN9KVnPK5EMG0DaXXUhaWDFAUJhZ3tB7yzWb2kqXbsT3TJ1o/DHc5 V8+/qNAbXpV3Z/XOkDr5s1Lus48FcnqUfpnc80eTdZgBQhueXSK4TBj5+4HZJwRMPsQV F99Vt5dCk0x7PVEvrF9hs9QNN0547MEpiuNxgzLH82eKqW7DuNMfYWkaYiJB109CoN4S iSkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=Qmu0MuHw+ZrUqxvCvZE7D7GRu+YcPJnBk63fcOR5k3g=; fh=FR3Cly1C5Vvj9B/ppcUhSwMJUR1L06U+mIuu732nWUg=; b=ufuqL7gfhRuebTUxLPO0dfm00Te+rucGWsDJl0TZJzzNwznVIi2dvWml1EQYmXdic5 JULgFmEN/WthZBPGwv8rZG33B9X8uaYKWSFFhr7OHFq6MkC8PRDhJKrUIyp4igRLYp10 1gyrlfxRT3E2Luu49lVqvJkMRLW+v6afBEWJa0P0idJ1Oes2/lwSO5lQwP5WonekrWtc PugXNH8rwmHR0BqsmT1kKl4Exyi2mDxqTbnZzlxzpDtZ+AoXBRKD/JjDAOlbnQcGTX1O F2WHwq2uGl8Yeu1neMSwUsNUgmpVzpIelEm9itX7Dgrs4xg1As+qhQyzozoq0OccRNb+ e3XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id df23-20020a05640230b700b005539b452ddesi659108edb.18.2023.12.21.01.43.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:43:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C56641F225EA for ; Thu, 21 Dec 2023 09:43:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 752333E482; Thu, 21 Dec 2023 09:39:40 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 4171C4BAAF; Thu, 21 Dec 2023 09:39:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Swlkk5RrszZdLr; Thu, 21 Dec 2023 17:39:26 +0800 (CST) Received: from dggpemm500005.china.huawei.com (unknown [7.185.36.74]) by mail.maildlp.com (Postfix) with ESMTPS id 602FC140257; Thu, 21 Dec 2023 17:39:34 +0800 (CST) Received: from [10.69.30.204] (10.69.30.204) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 21 Dec 2023 17:39:34 +0800 Subject: Re: [PATCH net-next] page_pool: Rename frag_users to frag_cnt To: Ilias Apalodimas CC: , Jesper Dangaard Brouer , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , References: <20231215073119.543560-1-ilias.apalodimas@linaro.org> <6fddeb22-0906-e04c-3a84-7836bef9ffa2@huawei.com> <0dfffe91-2bd4-2151-cf71-ef29bf562767@huawei.com> From: Yunsheng Lin Message-ID: <560730d0-937c-0497-e823-26c6cf72bff1@huawei.com> Date: Thu, 21 Dec 2023 17:39:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500005.china.huawei.com (7.185.36.74) On 2023/12/21 16:24, Ilias Apalodimas wrote: > >> But if we use 'bias' as part of the name, isn't that more reasonable to set >> both of the bias number to BIAS_MAX initially, and decrement the runtime >> bais number every time the page is split to more fragments? > > I think it's a matter of taste and how you interpret BIAS_MAX. In any > case, page_pool_drain_frag() will eventually set the *real* number of > references. But since the code can get complicated I like the idea of > making it identical to the mm subsystem tracking. > > Can we just merge v2 and me or you can send the logic inversion > patches right after. They are orthogonal to the rename anyway It is fine by me. And I can send the logic inversion patch if v2 is merged.