Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp871911pxt; Thu, 5 Aug 2021 13:56:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDJFyH0GA/ZLkGqnNJou1KX6UpjyLOf5DdzAlTbH3+N9L8q9SaEwMVf/EBqd3rCKwU0Ogo X-Received: by 2002:a5d:8b51:: with SMTP id c17mr447293iot.119.1628196977857; Thu, 05 Aug 2021 13:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628196977; cv=none; d=google.com; s=arc-20160816; b=o8hFcKowm6xxcmpyYNCjoA2An68oPfoPIwz1BDUm02zcHjj8mMQzWE4DfFMwHFrT0G uKp/Hj3wC95V+h1/VbjVljEAXwTqrpKZ8mqiK97zJUhVfG2IlxKPiAB+njQH3mQG9IXO XXhX/x4kPhyaZrsPRT36UOtAGw+c6NySY6HXgZmYPclIkypZeK2uHJNb5m2w6fV6kX7w P+E6vpMckMBrkLdfPCSVt11gxjKL4ygw+ami7kMeIjagUg4uB6rYACYJ+A0sfZY2Pm65 8LWdcYYUDovJem2GvzYCgCiLl0V9STHp2XreibNg8MW74t2rwfEfmS+tt4n7zaqMRDTI MdLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:reply-to :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=zNBa+DPw6skCL5zqb415g/XSwtRXkYRjfljqWc0rqOw=; b=Gkj+BZhiOZxfazAuIS0tmMMTydUVYKKcyOLIomSje7jOk+wgeUsFzc1WJRax9JKhG9 FStaY1xgm21d+F1xzZaRfuRmlBsI2+RLcRDOG4nJSkYI/08vVyghNDV7gO4gz0L9Bq00 21Avd1zowsry1NoG3TSdw9HkRUeuAoHK+SFVYRSXF6tMAJMK/K7AztuPWyFy168WCqU4 IaMYOEfPp8saQ4IuII76Af1EcQVT6B1rzZ9Jxm7ifmXCoKWOuD6W3Yn4vQt+2RSLbecA 0i7jvuFXwu/YZo+2YGFANYLLhsOzub0lgoCrNJ6J6p5/qjhQbgvwGEp/PBmguTK0sIrx 5WbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sent.com header.s=fm1 header.b=DyQb67WD; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gWQXO1i0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sent.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si8001080iov.41.2021.08.05.13.56.05; Thu, 05 Aug 2021 13:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sent.com header.s=fm1 header.b=DyQb67WD; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gWQXO1i0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242554AbhHETER (ORCPT + 99 others); Thu, 5 Aug 2021 15:04:17 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:36613 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242166AbhHETEG (ORCPT ); Thu, 5 Aug 2021 15:04:06 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 83F4A5810B7; Thu, 5 Aug 2021 15:03:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 05 Aug 2021 15:03:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=from :to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; s=fm1; bh=zNBa+DPw6skCL 5zqb415g/XSwtRXkYRjfljqWc0rqOw=; b=DyQb67WDvRtWM6HaUooUM/LJ7FBVe RHKFGNkJpgMc/hVEhEU3bBY0j9e1ACpLPdzYhMBgcjDe25DJVAzXtC8OyYQaCVVT DVkY8uIRXHprEmZd7qBlwTwWuaxBZ9hOYHN4GMeCh1CiCofOD28h/6oouXhqIR0t oKln8pn7sD+jD8rKJ0OfZcRP17juq9szZlAFNHgLyTc/QAno4D+VnlxhSsuynNfP 61sbW9SZYU5psQ4GG81DYucrG+Xv1iJYadVgCmDdHfkO6F3fiRucb/vyijDk16O9 /Tu4nUObFASN79yNgjfLeDeMHRAtJC2KV1GiUeMazMZWkFNAisJysmBTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:reply-to:subject :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=zNBa+DPw6skCL5zqb415g/XSwtRXkYRjfljqWc0rqOw=; b=gWQXO1i0 jN0W7VaDRO9ZJs7svTKOs6Zt3cVW8ykYAN5L20lmCsOwVLSyKKEZwcwAy8VLeDO+ +cKpfta9nOpdlS3fPnazuUW3DIx4T86hKG9WnNFqjnCwKTmzfFsvE9oh/Mdk21IY ZVbWKhhb5FA53N0Ec0CWeZHZKCmTAAiFT07RnyvlxwVi6mE/6AZGO8VqkOWJuOan ijipS8ZISTZ+UgBOT8KfSFZxVWMUbObBRGAXGyM93Vp8IG6cNc/lcud6npqT4vDF sQHBgCvQgM9uEJk8sIkfHmI/yaEFNhrihPBkIuGmwTxRC6bG58BsFou2qiW9cT3Z UG97Hfi+X2S+MA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrieelgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfrhgggfestdhqredtredttdenucfhrhhomhepkghiucgj rghnuceoiihirdihrghnsehsvghnthdrtghomheqnecuggftrfgrthhtvghrnhepieejue dvueduuefhgefhheeiuedvtedvuefgieegveetueeiueehtdegudehfeelnecuvehluhhs thgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepiihirdihrghnsehsvg hnthdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Aug 2021 15:03:50 -0400 (EDT) From: Zi Yan To: David Hildenbrand , linux-mm@kvack.org Cc: Matthew Wilcox , Vlastimil Babka , "Kirill A . Shutemov" , Mike Kravetz , Michal Hocko , John Hubbard , linux-kernel@vger.kernel.org, Zi Yan , Mike Rapoport , Oscar Salvador , Ying Chen , Feng Zhou , linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 08/15] fs: proc: use PAGES_PER_SECTION for page offline checking period. Date: Thu, 5 Aug 2021 15:02:46 -0400 Message-Id: <20210805190253.2795604-9-zi.yan@sent.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210805190253.2795604-1-zi.yan@sent.com> References: <20210805190253.2795604-1-zi.yan@sent.com> Reply-To: Zi Yan MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zi Yan It keeps the existing behavior after MAX_ORDER is increased beyond a section size. Signed-off-by: Zi Yan Cc: Mike Rapoport Cc: David Hildenbrand Cc: Oscar Salvador Cc: Ying Chen Cc: Feng Zhou Cc: linux-fsdevel@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- fs/proc/kcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 3f148759a5fd..77b7ba48fb44 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -486,7 +486,7 @@ read_kcore(struct file *file, char __user *buffer, size= _t buflen, loff_t *fpos) } } =20 - if (page_offline_frozen++ % MAX_ORDER_NR_PAGES =3D=3D 0) { + if (page_offline_frozen++ % PAGES_PER_SECTION =3D=3D 0) { page_offline_thaw(); cond_resched(); page_offline_freeze(); --=20 2.30.2