Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3000452pxb; Tue, 24 Aug 2021 12:36:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgqJaTMO8IRy5ojyM10+gYGW4L5SyLSrJKCWL2jzGgkI6I7oiUVHtdCNcIA7TMJTINMl1n X-Received: by 2002:a05:6e02:d0f:: with SMTP id g15mr8244076ilj.71.1629833767614; Tue, 24 Aug 2021 12:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629833767; cv=none; d=google.com; s=arc-20160816; b=mVv5kRt+fG9BLDkugCJoHG+NXAgn11wKRbO1cwvufaObFyCrtkae5eZIWIWTznnonr zxoQ1/OYHi61cV3aln1fq2WWEc0edQSaLHYMsen+to3K+HEASl4WLQ08DRujt2dksgl0 jGPYBGOGIZ2EgeY7gbT/RXi/x/AbUKrEEMGuc6s3iAARXoyun5K7nnNru+VG0+1ZxEeV lxgGMgGP5q3k+SvCqM4JAIr0xXssJ2dAxn+x1S3Ag+YmK0uS87S0Yv0Pb74I+gHGD27f 99pYwTeH8BYjBEKgx9WeKdC8eMgqdkRXzQfG0i0IyzqBufXVDeh6OQxw5rtiaoXJtdCy jJMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UZJyYVORrCiAyJfqjWHoPU9PIFZ88DitsmtYgIA7rQ4=; b=KG6KjCw56zypZyTTjB24XLyUwm7xhwh09lDcyMpcf3YypdDZf5W3ZDZwuDnwbaCmKD RqIIDlLYbHpjXrlIwQZHwtU6WX7ELHVRtV92+AIq9k7uwvebN5gcLIHWlEt661uFKQiz 3xyyHJtl1SimdAqyw2GVDKXvVlXHJqvryEBbeGWHxzrLT9IejgnghOsDxUz1mATRjxa+ 17MQPDX9bgnj3uzdIVBVojo6hx6jugmIX3Ng41r5e1b455O+uEDMQ8Thn9Iolx/Vi+V2 tZjUch9Gv8L2AYhz3jBDdRHmvHRg5rKNiidyKXL6arLJaMRdfjk5Nl20xOYjtV4D2Dt8 02aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KtXnGitB; 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 v66si23033641iof.105.2021.08.24.12.35.31; Tue, 24 Aug 2021 12:36:07 -0700 (PDT) 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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KtXnGitB; 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 S234059AbhHXT0Z (ORCPT + 99 others); Tue, 24 Aug 2021 15:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234613AbhHXT0S (ORCPT ); Tue, 24 Aug 2021 15:26:18 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46168C0613CF for ; Tue, 24 Aug 2021 12:25:34 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id x27so47745975lfu.5 for ; Tue, 24 Aug 2021 12:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UZJyYVORrCiAyJfqjWHoPU9PIFZ88DitsmtYgIA7rQ4=; b=KtXnGitBkvxfOgqJRNuwi+8709mbnBLpqTuREEhVvpbMPwWaovy2KY9NAyJLvsfAEZ 1V1wAe8ouRjxf9LTndxeO7Z+UHxlIm0NFECFKbrxrI2kT1jgXK9GwPGvsFC73in9KpWb 1oiPXuvWItsl7evaUnfeF/dDHy6N+uJbuNkFQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UZJyYVORrCiAyJfqjWHoPU9PIFZ88DitsmtYgIA7rQ4=; b=kXZG4tBfdctvF4Wt+mCjLEXpkFBNrl8LdB0CgIZ5ERI3506pEEZx2H14BdNne5RC+t aPDfV6u5p0txoldmmnW4Hsm3ooe0QYeLiKTroR/s10sJYdcuxuyTv9u9mv+NMR69qqKq Pv0LxANhoAIPmWAtCVsw0f19ve8ZuDeyMFAwJsnQGPuNFppgaSklf3xLFjlQYm9eArPk kexGAKwdkqhebU41cS6vfYsb3cNU4lMK0UddJE85lM4VwK1R6E9cl6dnF8/wQS6DhadP nmXIuj9+5ALFh8jUqQxEnYDoTTkk9vy8w23UGGfICgyZ0JNCFc16Ek8dG04bcudAbAsr y2Yg== X-Gm-Message-State: AOAM531GpCMSyvwrYoqayh+DUcap0p16awo3hpkvEELoVA0LSBvyd+Nj 389t3QUsN3O+H7nysWgV0J+JTl789xa+b9up X-Received: by 2002:a19:7b17:: with SMTP id w23mr26975005lfc.61.1629833132325; Tue, 24 Aug 2021 12:25:32 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id f30sm1834101lfj.219.2021.08.24.12.25.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 12:25:31 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id i9so47715765lfg.10 for ; Tue, 24 Aug 2021 12:25:31 -0700 (PDT) X-Received: by 2002:ac2:4da5:: with SMTP id h5mr16581349lfe.40.1629833131285; Tue, 24 Aug 2021 12:25:31 -0700 (PDT) MIME-Version: 1.0 References: <1957060.1629820467@warthog.procyon.org.uk> <1966106.1629832273@warthog.procyon.org.uk> In-Reply-To: <1966106.1629832273@warthog.procyon.org.uk> From: Linus Torvalds Date: Tue, 24 Aug 2021 12:25:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Memory folios for v5.15 To: David Howells Cc: Matthew Wilcox , Johannes Weiner , Linux-MM , linux-fsdevel , Linux Kernel Mailing List , Andrew Morton Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 12:11 PM David Howells wrote: > > "page_group"? I would suggest "pgroup", but that's already taken. Maybe > "page_set" with "pset" as a shorthand pointer name. Or "struct pset/pgset"? Please don't do the "shorthand" thing. Names like "pset" and "pgroup" are pure and utter garbage, and make no sense and describe nothing at all. If you want a pointer name and don't need a descriptive name because there is no ambiguity, you might as well just use 'p'. And if you want to make it clear that it's a collection of pages, you might as well use "pages". Variable naming is one thing, and tere's nothing wrong with variable names like 'i', 'p' and 'pages'. The variable name should come from the context, and 'a' and 'b' can make perfect sense (and 'new' and 'old' can be very good names that clarify what the usage is - C++ people can go pound sand, they mis-designed the language keywords). But the *type* name should describe the type, and it sure shouldn't be anything like pset/pgroup. Something like "page_group" or "pageset" sound reasonable to me as type names. Linus