Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1079469rdb; Fri, 16 Feb 2024 05:00:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqAZ9CDYlKdjDYeqqIr+FeA0QhanJ1Cw/dqlvzLHnSZqdOeUK3BepQp6uNxXxkUbGCm8yq6xK68ZszBSr7cAkuu5kOW0ypIDa9rlOpeA== X-Google-Smtp-Source: AGHT+IGFLEsVxuCs3yFu+il1wjamLqlFA26rZSmSBwCS8H8PxJwc4Bu3HQnKzCBOr5pQ90+n2W1S X-Received: by 2002:a05:6a21:3994:b0:19c:a4d3:2041 with SMTP id ad20-20020a056a21399400b0019ca4d32041mr6343510pzc.42.1708088424580; Fri, 16 Feb 2024 05:00:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708088424; cv=pass; d=google.com; s=arc-20160816; b=B6Kd9Es3oHy/+Sb/B5kEfdFGTIGX9QN6q0/TPNNXt2I9DrBqPMbDrVL4b/iMnj8nYL lgTHMWHDzkMP7F4DYoN+nyO8V2Ccps8qO7C5xKepbjPo4qCWE0EzOA0/HyCaZczPW7QA eJqk089Gv01F2uHjKjyxF2BmnEAf/nrPBrnQ/c6zR3wvT4eFXZjuyuIuWqoycwVwwUJH gDbe7LvDxSvbaV0Le3/9Sq2fe2af+kHT2+G3sR6Ac8HyboGzVa8gjoQDcoQdySGo5Izm jBeV5TeKvRPM37scmVXOJA5uwRLGppT0C6Tj2XXsEfFHD7dtzg2NRYvJD4qc4OHpz9Um S4OA== 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=pchHAy2KF9D/hXSMRXG4y37jrBJ3ePo4YF1+09eK9QA=; fh=Ibc3vvLs1ePgcjJgw7Z+sNG22nP/JfFEHAoOK0awSR8=; b=0nJyKtGLXznDgs2dvg/Ocd+HbeESwbokaWOY+QBaL+NX7NGNW+7/YYNMI3Tcs/9hS8 8AGX3Fe35UHZW0ubRG5D5x8eN/ouKqwdSn6MdBCPBM/9/g6hyxxxzTmTgGX64kdSDo33 0ufVZoojYAmHeIbA3QC1Wn03L2r2bbRQu7aigw/gUhFrLF2esCyW7Ep2w8tqJgyOY3Wn tFvFgI34+pEhm6WtGxjoEbm+YPaZWdO4EsPG7W/N+tUTYGwX/uNh9qVR2bl1fdifQwM9 lHS50PDTQBzWsv/Bww4ORWx23/Q7pSBhN0Bpda7lJ//wlAsn3Viak0TSgV606fWXeWpZ 21Mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a8zrdQEl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-68604-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68604-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 jm1-20020a17090304c100b001db4cafb9f2si2952639plb.517.2024.02.16.05.00.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 05:00:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68604-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=@intel.com header.s=Intel header.b=a8zrdQEl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-68604-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68604-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 EE15B287797 for ; Fri, 16 Feb 2024 13:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A911D1292F2; Fri, 16 Feb 2024 13:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="a8zrdQEl" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 63D6F7868D for ; Fri, 16 Feb 2024 13:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708088406; cv=none; b=QL51fuU36K9V7AAQV1dIu60BxvLW0hfTJA33afhpCIpEPI15yVCgtgD4/IErzZy64TmCIIJ0vzz/DeviudiGgkqglSqGjB2NhTe42Jr+KbpaatF5VBmILuJEJoWO+55ZOO9qTkco4K/f3Fdb8PBCGS7xVLD/aptKmBUK/YxruZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708088406; c=relaxed/simple; bh=V3FWZW7fon/5hW4D4VPYIT+5GMH0y8BeWvF+fEq3D0o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bbcSMreBsxpVmM7oV/JIlgDGZf5f85WNJI+y+yfyKcJHolkFPxZ8ynGmU6OL3uRWkmnHzotB4RdPd8cT27yNeQP/r0aYVtyArra9DLeqyWQRmsbQ3PnvKse5Jd1uJsD7etl2PrIh/hpoe8EO8K8ILOUvntyiERkVV8cOxdjGYzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=a8zrdQEl; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708088405; x=1739624405; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=V3FWZW7fon/5hW4D4VPYIT+5GMH0y8BeWvF+fEq3D0o=; b=a8zrdQEl2QcYe6Sgs0/UKj0AWj1xyHun5mJsbsv+hh1f2mjYY154rDIi zuoRWr2x8Ot/H8u7v9pV8wWtiMzLLYGcwwYIcEJm+o1cW4MyPPMxa9FkU OG9CjAtdvnRWoc7ZkkLeIyaY+kv/quNKsiFi8l9JeSseju9aqc1G+rhV4 rsQpvZ+nTBW8PqHBdL5WkYCS9UTlw0i5iOC9lTcsP8fijChhAftTmL8cM aHeGUt2S/I2A6yfwN5PvlQjN8a3i4lRuv4dX+adPfQN4Vyw59DsDRp9yU K7DVGFjqxqc40ibgRIcjoftW44/lnlG+kSjoyIU2GYyszSAHCnQ22AXuj A==; X-IronPort-AV: E=McAfee;i="6600,9927,10985"; a="6042003" X-IronPort-AV: E=Sophos;i="6.06,164,1705392000"; d="scan'208";a="6042003" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2024 05:00:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10985"; a="935845521" X-IronPort-AV: E=Sophos;i="6.06,164,1705392000"; d="scan'208";a="935845521" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 16 Feb 2024 04:59:58 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id EB57B524; Fri, 16 Feb 2024 14:59:56 +0200 (EET) Date: Fri, 16 Feb 2024 14:59:56 +0200 From: "Kirill A. Shutemov" To: Rick Edgecombe Cc: Liam.Howlett@oracle.com, akpm@linux-foundation.org, debug@rivosinc.com, broonie@kernel.org, keescook@chromium.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, luto@kernel.org, peterz@infradead.org, hpa@zytor.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 4/8] thp: Add thp_get_unmapped_area_vmflags() Message-ID: References: <20240215231332.1556787-1-rick.p.edgecombe@intel.com> <20240215231332.1556787-5-rick.p.edgecombe@intel.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: <20240215231332.1556787-5-rick.p.edgecombe@intel.com> On Thu, Feb 15, 2024 at 03:13:28PM -0800, Rick Edgecombe wrote: > +unsigned long thp_get_unmapped_area(struct file *filp, unsigned long addr, > + unsigned long len, unsigned long pgoff, unsigned long flags) > +{ > + return thp_get_unmapped_area_vmflags(filp, addr, len, pgoff, flags, 0); > } > EXPORT_SYMBOL_GPL(thp_get_unmapped_area); Again, static inline should be fine. -- Kiryl Shutsemau / Kirill A. Shutemov