From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBAD437BE97 for ; Tue, 26 May 2026 06:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779777529; cv=none; b=MTrAQdKas/5bJtVYNnhOtBgm9NzX3qLz45lEMXwwO/GDhlefMgQz7+HpsP9k6Q7Bw+mLlBLsJ5OVqVcqE0VjJSFY6Y5T5vh69DkbSf+KQEjOEScJUYnFUw4dNnY3fLOH4eIz5rsUCYNwtq2h9CrbaIwelPoiQCqNKnmSFnsfXXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779777529; c=relaxed/simple; bh=iSUk93IpOjp1RM5o6/wHun7MSHRJvL2xC+E0IUMS7/M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jXlgR8CKgIXCZUdPin9s4f7Tfq7Q/AGwLqfwvrI/p8KkEaGmpiwHK5s+hoLriHFaI9FbBr4nyFwWWPScNUxd9tgoptN10BgZPbPl5nj85Hvz6CeA+bfpLR/vn4cb3YcrXK/15UeaZ+7H0ZyM5EgbX7mIBbTovZ0Vw4Zz0dOBGbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=X8kXKjF+; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="X8kXKjF+" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1FE1C2936; Mon, 25 May 2026 23:38:42 -0700 (PDT) Received: from a080796.blr.arm.com (a080796.arm.com [10.164.21.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 80B2E3F7D8; Mon, 25 May 2026 23:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1779777527; bh=iSUk93IpOjp1RM5o6/wHun7MSHRJvL2xC+E0IUMS7/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X8kXKjF+4ZfVXUalFqiqUZpucRJohfuL5setv5FVSGv25j0BBmlv+uo3R0iYnTVST 1TQF3XbO7yoiPvfHIbkA5Lwvtywui/FJab0wlynzfiVqhfQTb1crBlOremgF/FQcB/ w9UDehrBV76yjtBeexuArTH9f5DVCzikGI/pumMo= From: Dev Jain To: akpm@linux-foundation.org, david@kernel.org, ljs@kernel.org, chrisl@kernel.org, kasong@tencent.com, hughd@google.com, liam@infradead.org Cc: Dev Jain , riel@surriel.com, vbabka@kernel.org, harry@kernel.org, jannh@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, qi.zheng@linux.dev, shakeel.butt@linux.dev, baohua@kernel.org, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, shikemeng@huaweicloud.com, nphamcs@gmail.com, bhe@redhat.com, youngjun.park@lge.com, baolin.wang@linux.alibaba.com, pfalcato@suse.de, ryan.roberts@arm.com, anshuman.khandual@arm.com Subject: [PATCH v4 11/12] mm/mprotect: drop 'sub' from page_anon_exclusive_sub_batch Date: Tue, 26 May 2026 12:06:34 +0530 Message-Id: <20260526063635.61721-12-dev.jain@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260526063635.61721-1-dev.jain@arm.com> References: <20260526063635.61721-1-dev.jain@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Shorten the function name by dropping the "sub-batch" context - the function itself doesn't need this context. Signed-off-by: Dev Jain --- mm/mprotect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mprotect.c b/mm/mprotect.c index 9cbf932b028cf..3357058672016 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -143,7 +143,7 @@ static __always_inline void prot_commit_flush_ptes(struct vm_area_struct *vma, * !PageAnonExclusive() pages, starting from start_idx. Caller must enforce * that the ptes point to consecutive pages of the same anon large folio. */ -static __always_inline int page_anon_exclusive_sub_batch(int start_idx, int max_len, +static __always_inline int page_anon_exclusive_batch(int start_idx, int max_len, struct page *first_page, bool expected_anon_exclusive) { int idx; @@ -179,7 +179,7 @@ static __always_inline void commit_anon_folio_batch(struct vm_area_struct *vma, while (nr_ptes) { expected_anon_exclusive = PageAnonExclusive(first_page + sub_batch_idx); - len = page_anon_exclusive_sub_batch(sub_batch_idx, nr_ptes, + len = page_anon_exclusive_batch(sub_batch_idx, nr_ptes, first_page, expected_anon_exclusive); prot_commit_flush_ptes(vma, addr, ptep, oldpte, ptent, len, sub_batch_idx, expected_anon_exclusive, tlb); -- 2.34.1