Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp105727rdb; Wed, 21 Feb 2024 19:32:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUkBDpEvzXTst1ZEciNV//Ze+/ACNYMUP4Afta5MFv2IeseS7PlI8IdyXE/qyjOsiM/j8WlcfrTDDfvLASjt0EQJVuSdLYIPNtgIqQuTw== X-Google-Smtp-Source: AGHT+IHmPExkp10X7o3syWyy/W58PQDu+5ICOYb6QMePwOGzTQxJTvM8OPgBC8p/ltaZraMzNyz6 X-Received: by 2002:a05:622a:1a10:b0:42d:a9a6:650 with SMTP id f16-20020a05622a1a1000b0042da9a60650mr2112731qtb.4.1708572723636; Wed, 21 Feb 2024 19:32:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708572723; cv=pass; d=google.com; s=arc-20160816; b=DWDPMk5yQMpr/to9EK9/wUAcGIpAM0qUcqfadPDd0D4d9DXVw6eT1Xv421MECT+YZF /MajDiq+HzTl9p4mg3XRtLmqiKu3D29rZOgSsO7f9Pl66PIrBZOSHUwAbPI74ruSBzq4 v1Uw/SrLF0enD/oIhD1U0K+O4V4k0uAP3KyBA0gtWnW8cG+LzlyZzsLAduGJfSJ+lzxK rL2GODv/umVRsp1jlEV3pJSZ3G7WApWI+XdT69fxdcbok050TewTlKkiF+G5vdmm2lJ7 pjg+x6O/v4QebUwK0MpXlv46LNki4uB3y0UusR79zLDYnm0kH4s7VmfbGe4FkZrpmx+n Xzqw== 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=WiziIu9cwCHCOeLJcIE3kHR9Y49OOwpluamD54SeM4k=; fh=7LP8t954uHnDkzu77Iidc1+r0eNDQrtruu0dALQ6seI=; b=ucksQzGkuOU0WBKKFEbdDjJ0c3Jtd3Oj+t/9WMMXC7t3hErbf3Rfex2Zr9dSng3fXm xZgxqoaxir48rVNj2WdmNd0MQPQwYicBHNa/o0iROgvUyD/D+vaBvSw1n/PUNqmpHpku QJX3w1pgDQyvIMpAhT4b6xZmP43cX/V8XI02rVAAxJRgQb9SzIYLcy5pGqla3/2Oehpl SfpYv+B5h7bASOcKpAa2av++f08Cez9eNtPF7EiWuBYnepTTYr23aC9uUrY3XrrG65IC Qexto93eWfu6xMxC/s/QsocYMG10UusyEhXKAfyRP/jW24FdnnLWUJCljq+xogsJUko8 ZHPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XkcKFFQE; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-75857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75857-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o19-20020ac86993000000b0042c6d7ee1a8si11700312qtq.722.2024.02.21.19.32.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 19:32:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XkcKFFQE; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-75857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75857-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6497B1C21888 for ; Thu, 22 Feb 2024 03:32:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BA4A1755C; Thu, 22 Feb 2024 03:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="XkcKFFQE" 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 7332914284 for ; Thu, 22 Feb 2024 03:31:52 +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=1708572714; cv=none; b=bh5gkHtr/BC40D1k+m2nExjWlDCeQBewyppcuxWD+BhotvDjm4NOyyjA3RpA2Poe3NS/IrMeBTQOJFBorAfZ8oEIjmrV+7xTvE/01EXD66q2pKZW9UGau65uPqir6uWtVKlehTA+FmGHbQEd4mAKYSleLLa/+vpobyePUO61oPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708572714; c=relaxed/simple; bh=mnLbadwXDpMUsMJETMQ8h1TYA8a6aDiHxYfxjEowuCk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SYtkXf/y2N3tBGv8I8KRwEkY80mxavC7rLdXdjQ1dPCYOhWGhzmY9hnNAbsjzMPNklwZH4Pe0PW3jMx2yjSusyd4EeFetJ2shZxc87086YNSJoEAcg6uS5NZUOTsdW5y78Kr3afEkk84paTnBR6aFyYmLRXyol3zA+1u+yx1smI= 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=XkcKFFQE; 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=WiziIu9cwCHCOeLJcIE3kHR9Y49OOwpluamD54SeM4k=; b=XkcKFFQE9J7mtRLNkv+7KulNM2 3W/xEZW7WpnjbYDrewKxUrh8F7c509KNY9vdAoKxrVb/eoacUMTQK6P1ZiOPd7DtoIzgTCaJfQpnH m25lNf2IVnn0fVQeWjZ2dKVDC/GczkZEYLDLV6y1tLw9AoZpb5E7ETC1FvXveHR1x4f4D2alG/gbV pJXQ+q2d32zwra2bOWqJqnuamj5dYyJHsTxkjYQeIkqp3kdoxS+G/2YM5t+fgewmlD7u2AsSQQCGI Jp09nR/fhFBSOZvzrVOBT7kaGUFX6nDU1UrYalAGZxC0K//VoNcDKL/dJIclPogqzGLkoCxTyCPw2 XqamIQ4g==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rczoL-00000002T6C-2guG; Thu, 22 Feb 2024 03:31:49 +0000 Date: Thu, 22 Feb 2024 03:31:49 +0000 From: Matthew Wilcox To: "Vishal Moola (Oracle)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, muchun.song@linux.dev Subject: Re: [PATCH v2 1/5] mm/memory: Change vmf_anon_prepare() to be non-static Message-ID: References: <20240221234732.187629-1-vishal.moola@gmail.com> <20240221234732.187629-2-vishal.moola@gmail.com> 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: <20240221234732.187629-2-vishal.moola@gmail.com> On Wed, Feb 21, 2024 at 03:47:28PM -0800, Vishal Moola (Oracle) wrote: > In order to handle hugetlb faults under the VMA lock, hugetlb can use > vmf_anon_prepare() to ensure we can safely prepare an anon_vma. Change > it to be a non-static function so it can be used within hugetlb as well. > > Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Matthew Wilcox (Oracle)