tree-wide: include missing_fs.h only where necessary

The additional definitions provided by the header are
- EXT4_IOC_RESIZE_FS, used in resize-fs.c,
- FILEID_KERNFS, used in cgroup-util.c and pidfd-util.c.

Let's drop the inclusion at other places.
This commit is contained in:
Yu Watanabe
2025-06-25 00:50:06 +09:00
parent 51cc3825d1
commit fbf6836812
5 changed files with 5 additions and 5 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <linux/fs.h>
#include "forward.h"
#include "missing_fs.h"
/* The chattr() flags to apply when creating a new file *before* writing to it. In particular, flags such as
* FS_NOCOW_FL don't work if applied a-posteriori. All other flags are fine (or even necessary, think
+1 -1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <fcntl.h>
#include <linux/fs.h>
#include <linux/kcmp.h>
#include <sys/ioctl.h>
#include <sys/resource.h>
@@ -16,7 +17,6 @@
#include "fs-util.h"
#include "log.h"
#include "missing_fcntl.h"
#include "missing_fs.h"
#include "missing_syscall.h"
#include "mountpoint-util.h"
#include "parse-util.h"
+1 -1
View File
@@ -2,6 +2,7 @@
#pragma once
#include <features.h>
#include <linux/fs.h>
#include <linux/mount.h> /* IWYU pragma: export */
#include <stddef.h>
#include <stdint.h>
@@ -10,7 +11,6 @@
#include <unistd.h>
#include "missing_fcntl.h"
#include "missing_fs.h"
#include "missing_syscall_def.h"
/* Possible value for FLAGS parameter of `umount2'. */