Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp299557lqp; Thu, 4 Apr 2024 13:37:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/D6M1NNPGEz7rzou1Tqr7reD8BvNnQr+7iOhV7nBHQOcTL+8MRzLTycTvUxxkLszuJBxC44ea9jlglPH65HYzl8twBhfAvekuHLjwzg== X-Google-Smtp-Source: AGHT+IHlcJHbj95jnhkyj9r6CUg1RsSH9g4f2FfjX5QjJgRiEu05L6xBAg1/xjczEYM/p7KzzuoL X-Received: by 2002:a2e:3316:0:b0:2d8:8b7:76e3 with SMTP id d22-20020a2e3316000000b002d808b776e3mr2589939ljc.11.1712263026414; Thu, 04 Apr 2024 13:37:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712263026; cv=pass; d=google.com; s=arc-20160816; b=iru6R4eAxuIKAprREErnLn0wyQ/GMks7fWLHNieeD8+EaMtb7QDG7gEH5ZzfP9lzsz 0uMN/5Gib0YrOK15Gi+6QUdZ+lfYFIHqaa0M+y3lbqhZ112Syzma2+HbY0QkBGlBHNbZ 8I0AxPXNanLmm+/a7X1PvyTmzRVGzK7TEupGuwU8kbA+UU3/3xESXY0BQMpft0lwI9BI MnA5MtdhuD+2QuwakIX4ZChATJEyhsJ38ake+RXbQnrCeFqxdABfc5d7aY4VYLMXgpEF A+ZLLscLBxOOIMYHo1k8M3TuPcNbEf9/3Ey5LfbSZRizQjpwxQ8RgyNdP5Dfr9xIHMTx i3Jw== 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=B/DObdPmk2vIFww25ZF0AN9UF35je65YLgjdkhWbsjU=; fh=z9Mzz3Te/FBXXJoAsvLFpfodQSxWkML4s5z5XXlFSYs=; b=fW94XZ8+W8HGRMNCzFuvxuLA6WbJOFSo/pIutOcd7f75Rdu/GU79sg5X0LLDvY5YAP FZ52ZeJZCL1CZgvbY6yn7fGxpxgR8p8mN9i1FqUWn6v758FmFg2Z/V3w+ZusRWYe34k0 TdRk5LZCCEYb+6Hg9gn/3RQaxJS6UtVN31IyzH5/ivTy9G16edlHOcTLeIRRwMs3nn8B FvjrU8BaPRL0/EoNiDZ9hj8Sa5/jiLjEUTHnzwJz58Ltvng/64ICvGHXBBegq1DGrv0R LvcFad517w60xoMc+vtoWE6gnBSVJyvFQAa0lmSp6tpy2pZgT0fX3eug2jThePtQ8+H0 04ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JNi1crAz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-132104-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 e30-20020a50a69e000000b0056c04f25108si19983edc.176.2024.04.04.13.37.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 13:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132104-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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JNi1crAz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-132104-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 E13B41F2360F for ; Thu, 4 Apr 2024 20:37:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEF218592E; Thu, 4 Apr 2024 20:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JNi1crAz" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 7769613A890 for ; Thu, 4 Apr 2024 20:36:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712263009; cv=none; b=HM0d3zgktG64ilCw3cpngZEOfVGxB7cXsuZSTmxix9N74o2tIaklBsIbV4js5bqGj6eeWMZZG0fgrxD8GehNofSo6pjSxxxoUBJLNyS0psFVr98J9s2baZs0iGO5yA62uW8WiXFXgW7Sm4/o6y4c0TuFtgQHgPnFpUV7FMDaLyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712263009; c=relaxed/simple; bh=y1Rsrld3EEbDp6rEcRf4DJgr5shNa6Z5QESiLrsf31A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CUX+Z7XimExV9Bt8g/Y4k1/zflOuifhRTSqBjAKQYKTY2IgjyursGHF0brzhxJFmpPlP/UrtTN7Ki4tl+4G/gJWYQ1XU4aG8Fddn1AZcZIStH7Ia/5ZFYKZejf+HVlVsR/O6UBYPsWbNFsTkXVYfGzJElIYOJLkRJtYml2VYwBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JNi1crAz; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712263006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=B/DObdPmk2vIFww25ZF0AN9UF35je65YLgjdkhWbsjU=; b=JNi1crAzudHf4ufDPbjHnMj2+8kpDcyqYCJUbcjrVU9W9Fg2m10shNdU5t7EnNnx9iDLjp oMrY58pYRkhG25+cq01qxkWiVBOBxM0zJsmzEzUmD0eVbNsqa3Y1LcZxk0n2K0V8UFbmPU xZY0zjWXy/9TpTRV+b4f4DVnBcA7Gb8= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-556-7IcgZwXoNjSwOJKIxXfAUg-1; Thu, 04 Apr 2024 16:36:45 -0400 X-MC-Unique: 7IcgZwXoNjSwOJKIxXfAUg-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6993921ae18so1517366d6.0 for ; Thu, 04 Apr 2024 13:36:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712263004; x=1712867804; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B/DObdPmk2vIFww25ZF0AN9UF35je65YLgjdkhWbsjU=; b=Akf9mQUR98+3YCZ3Zu7B3gQeMDiALiMU2PrVPqolOShUJHtqxyCzbkVha20RlEKqNb c6dBt7vlfC20Y4ddedCx7UY6dMIXdXIyWrmWMFNg1POj0IuLk6SEpjcOoyUbxKeQC04o CSi0HrIy7M/dRpqM5UDEf5j5eG2hIjeTwuIqw4lwl+uzf4pQhqTQ+y5BYa8zFaI4Ulkm CaiKYV/5tqtvBQjRHSbKKlQuKVuMMLE+Uh/PtttkkF3NAQ8E3QbjFxQydBaQm4kDGQwX D2toZHH/WJSpfyJ3R0g5Q8gepf2MNpyZOOCZwcXUEVib8DKeK4Qf54mmILTpKcDid5Sn tUWQ== X-Forwarded-Encrypted: i=1; AJvYcCWheqR0Po8ToZ16TAMcCWmt4T6JIrYYW/b3oA6vvBbEfU0L6s4yKtwdlqmQP+AEHpgIqHK9ORa0NZxqYWMymqhoFYFTM6QvgZ5GA3vG X-Gm-Message-State: AOJu0YyurDNz/NhUfWpI8nmE7K2m/+cfMB/5X/IN72lOr+WYTn/0b4+Y Y57+DYjIFCZWyihqTtWmRMqyvp0CAczA6gHn49dg7xeuMM0PpIBUeoKLJoCx8xw3gfqHukCrRRq 5+UMX/RLv0wRxzgk2Qro7hPeXxe9VRcR3eykvsMjsOaUQNl5391iF2brnHkaHLw== X-Received: by 2002:a05:6214:5084:b0:699:1b70:da97 with SMTP id kk4-20020a056214508400b006991b70da97mr3574428qvb.0.1712263004395; Thu, 04 Apr 2024 13:36:44 -0700 (PDT) X-Received: by 2002:a05:6214:5084:b0:699:1b70:da97 with SMTP id kk4-20020a056214508400b006991b70da97mr3574392qvb.0.1712263003617; Thu, 04 Apr 2024 13:36:43 -0700 (PDT) Received: from x1n ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id b19-20020a0ccd13000000b00699103a1cf1sm44942qvm.119.2024.04.04.13.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 13:36:43 -0700 (PDT) Date: Thu, 4 Apr 2024 16:36:41 -0400 From: Peter Xu To: Andrew Morton Cc: Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huacai Chen , David Hildenbrand , Jason Gunthorpe , Nathan Chancellor , WANG Xuerui , Ryan Roberts , loongarch@lists.linux.dev Subject: Re: [PATCH 1/3] mm: Allow anon exclusive check over hugetlb tail pages Message-ID: References: <20240403013249.1418299-1-peterx@redhat.com> <20240403013249.1418299-2-peterx@redhat.com> <20240404133137.560d15c1a3bc7176424901fb@linux-foundation.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=utf-8 Content-Disposition: inline In-Reply-To: <20240404133137.560d15c1a3bc7176424901fb@linux-foundation.org> On Thu, Apr 04, 2024 at 01:31:37PM -0700, Andrew Morton wrote: > On Thu, 4 Apr 2024 10:21:21 -0400 Peter Xu wrote: > > > Andrew, could you help update with Matthew's fixup? The comment is > > definitely better than what I wrote in all cases. > > From: Andrew Morton > Subject: mm-allow-anon-exclusive-check-over-hugetlb-tail-pages-fix > Date: Thu Apr 4 01:27:47 PM PDT 2024 > > simplify PageAnonExclusive(), per Matthew Thank you! -- Peter Xu