From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B868B1448C9 for ; Tue, 25 Jun 2024 05:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719291669; cv=none; b=DzkHCC9zc++T4ApkTdAKBpi897OvahtihsU4dDZUfbiEJ9GPTREqCjtMrg9py/A7vTu7rA8tGdkMVB7HeK/MuYYxaPwFBXe0l8Ze/8cJIXiSB3otccqXyrdMjkQeOqUVp8G8y2OhSdsXRTOrC365MNKBPHlFwig5qoZuslVclYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719291669; c=relaxed/simple; bh=79l5IQihqTvxStvMwHtASxzUQWDwFC9GJSFMt31Mv/I=; h=Date:To:From:Subject:Message-Id; b=eFZAj7SsziGAvCtQ36aLDo6jvi4uyZYbNHhOlbI9XCtEe/5ay9Syh10gMMQSzYZVrtW1aHDgTzewxDIT+QsZIiEqwHIeUYyqlDCIDlPfZQ5H3NzydJL3B7z7YkdMsg5i5TdN6vGAjXb+pKEwsi+yzV8uoTs2X9HBihWr7GROKs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=MUaDjXJ3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="MUaDjXJ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43D13C32782; Tue, 25 Jun 2024 05:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1719291669; bh=79l5IQihqTvxStvMwHtASxzUQWDwFC9GJSFMt31Mv/I=; h=Date:To:From:Subject:From; b=MUaDjXJ3ttWlq65jz+WV3d0QjaCszDywvI5L8D/OZw9HfTztb0jhRv8htUOlY0mUx 3CbGUa5SENY50uqZrvjyII/kNbdjgFdmeVcZjC5nA2TgC//qo70hnSKo5An+Rpu86T dDK0pTtR5482d7o8PwLLaDR6i1Ph/SAvnbt5L+r0= Date: Mon, 24 Jun 2024 22:01:08 -0700 To: mm-commits@vger.kernel.org,usama.anjum@collabora.com,shuah@kernel.org,peterx@redhat.com,Liam.Howlett@oracle.com,kent.overstreet@linux.dev,kees@kernel.org,jeffxu@chromium.org,david@redhat.com,dalias@libc.org,brauner@kernel.org,axelrasmussen@google.com,avagin@google.com,jhubbard@nvidia.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] selftests-mm-fix-vm_utilc-build-failures-add-snapshot-of-fsh.patch removed from -mm tree Message-Id: <20240625050109.43D13C32782@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: selftests/mm: fix vm_util.c build failures: add snapshot of fs.h has been removed from the -mm tree. Its filename was selftests-mm-fix-vm_utilc-build-failures-add-snapshot-of-fsh.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: John Hubbard Subject: selftests/mm: fix vm_util.c build failures: add snapshot of fs.h Date: Mon, 17 Jun 2024 19:24:20 -0700 On Ubuntu 23.04, on a clean git tree, the selftests/mm build fails due 10 or 20 missing items, all of which are found in fs.h, which is created via "make headers". However, as per [1], the idea is to stop requiring "make headers", and instead, take a snapshot of the files and check them in. Here are a few of the build errors: vm_util.c:34:21: error: variable has incomplete type 'struct pm_scan_arg' struct pm_scan_arg arg; ... vm_util.c:45:28: error: use of undeclared identifier 'PAGE_IS_WPALLOWED' ... vm_util.c:55:21: error: variable has incomplete type 'struct page_region' ... vm_util.c:105:20: error: use of undeclared identifier 'PAGE_IS_SOFT_DIRTY' To fix this, add fs.h, taken from a snapshot of ./usr/include/linux/fs.h after running "make headers". [1] commit e076eaca5906 ("selftests: break the dependency upon local header files") Link: https://lkml.kernel.org/r/20240618022422.804305-5-jhubbard@nvidia.com Signed-off-by: John Hubbard Acked-by: David Hildenbrand Cc: Andrei Vagin Cc: Axel Rasmussen Cc: Christian Brauner Cc: Jeff Xu Cc: Kees Cook Cc: Kent Overstreet Cc: Liam R. Howlett Cc: Muhammad Usama Anjum Cc: Peter Xu Cc: Rich Felker Cc: Shuah Khan Signed-off-by: Andrew Morton --- tools/include/uapi/linux/fs.h | 392 ++++++++++++++++++++++++++++++++ 1 file changed, 392 insertions(+) --- /dev/null +++ a/tools/include/uapi/linux/fs.h @@ -0,0 +1,392 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _LINUX_FS_H +#define _LINUX_FS_H + +/* + * This file has definitions for some important file table structures + * and constants and structures used by various generic file system + * ioctl's. Please do not make any changes in this file before + * sending patches for review to linux-fsdevel@vger.kernel.org and + * linux-api@vger.kernel.org. + */ + +#include +#include +#include +#include + +/* Use of MS_* flags within the kernel is restricted to core mount(2) code. */ +#include + +/* + * It's silly to have NR_OPEN bigger than NR_FILE, but you can change + * the file limit at runtime and only root can increase the per-process + * nr_file rlimit, so it's safe to set up a ridiculously high absolute + * upper limit on files-per-process. + * + * Some programs (notably those using select()) may have to be + * recompiled to take full advantage of the new limits.. + */ + +/* Fixed constants first: */ +#undef NR_OPEN +#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ +#define INR_OPEN_MAX 4096 /* Hard limit for nfile rlimits */ + +#define BLOCK_SIZE_BITS 10 +#define BLOCK_SIZE (1<