Thread (50 messages) 50 messages, 9 authors, 2021-08-09
STALE1773d
Revisions (3)
  1. rfc current
  2. v2 [diff vs current]
  3. v1 [diff vs current]

[RFC PATCH 08/15] fs: proc: use PAGES_PER_SECTION for page offline checking period.

From: Zi Yan <hidden>
Date: 2021-08-05 19:04:03
Also in: linux-fsdevel, lkml
Subsystem: filesystems (vfs and infrastructure), kcore, proc filesystem, the rest · Maintainers: Alexander Viro, Christian Brauner, Omar Sandoval, Linus Torvalds

From: Zi Yan <ziy@nvidia.com>

It keeps the existing behavior after MAX_ORDER is increased beyond
a section size.

Signed-off-by: Zi Yan <ziy@nvidia.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: David Hildenbrand <redacted>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Ying Chen <redacted>
Cc: Feng Zhou <redacted>
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)
 			}
 		}
 
-		if (page_offline_frozen++ % MAX_ORDER_NR_PAGES == 0) {
+		if (page_offline_frozen++ % PAGES_PER_SECTION == 0) {
 			page_offline_thaw();
 			cond_resched();
 			page_offline_freeze();
-- 
2.30.2

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help