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 B679D1E502 for ; Wed, 26 Mar 2025 14:54:36 +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=1743000878; cv=none; b=N4jcn7kWdtT4wRgyfS/eUTEn40m4M4zSwFzeAvyt27Yq96Fdg1xr8jOot0bP8Z9ZgGcoJNceGnxugOQMSxTbOfx0WLDQCUDJeZhCckJ4o70HyOJ5RJEYjmAMsdiKv1CHGLb98IEq096AzeWFcM1FIUrK0x01M//L0CjPj1GnjG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743000878; c=relaxed/simple; bh=Se+K6Wfd9Bfl7Oq4768qjGj5L6qzm3coIJCKps4g66k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FGSgU3hPtzb0jEh8CvA7ez4g+wMYs5FeH9ixYIh9h9iVsn34+jV88QNadJKTrp9K80peImJbHxaKEbrtljTQ4FvhAs7Qd6h8xc5Ff0lVQbaKFAV/gzKgPPQoqyovxJx6LRDQarl/cBNTKlUrhlcIKrpqQGz6z+mezcYWxcJSNs8= 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; 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 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 F099D1424; Wed, 26 Mar 2025 07:54:35 -0700 (PDT) Received: from [10.57.82.15] (unknown [10.57.82.15]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E974F3F63F; Wed, 26 Mar 2025 07:54:26 -0700 (PDT) Message-ID: <5a5f22cb-1bd7-4dcb-85cc-f412de79b87b@arm.com> Date: Wed, 26 Mar 2025 10:54:24 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 03/11] mm/page_table_check: Batch-check pmds/puds just like ptes To: Pasha Tatashin Cc: Catalin Marinas , Will Deacon , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , David Hildenbrand , "Matthew Wilcox (Oracle)" , Mark Rutland , Anshuman Khandual , Alexandre Ghiti , Kevin Brodsky , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20250304150444.3788920-1-ryan.roberts@arm.com> <20250304150444.3788920-4-ryan.roberts@arm.com> Content-Language: en-GB From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/03/2025 10:48, Pasha Tatashin wrote: >> -void __page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, pud_t pud) >> +void __page_table_check_puds_set(struct mm_struct *mm, pud_t *pudp, pud_t pud, >> + unsigned int nr) >> { >> + unsigned int i; >> + unsigned long stride = PUD_SIZE >> PAGE_SHIFT; > > nit: please order declarations from longest to shortest, it usually > helps with readability. (here and in pmd) Noted, I'll fix this. > > Reviewed-by: Pasha Tatashin Thanks! > > Pasha