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:
@@ -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
@@ -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"
|
||||
|
||||
@@ -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'. */
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
***/
|
||||
|
||||
#include <linux/fiemap.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/magic.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
@@ -17,7 +18,6 @@
|
||||
#include "fileio.h"
|
||||
#include "hibernate-util.h"
|
||||
#include "log.h"
|
||||
#include "missing_fs.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "proc-cmdline.h"
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include "log.h"
|
||||
#include "loop-util.h"
|
||||
#include "main-func.h"
|
||||
#include "missing_fs.h"
|
||||
#include "mkdir-label.h"
|
||||
#include "mount-util.h"
|
||||
#include "mountpoint-util.h"
|
||||
|
||||
Reference in New Issue
Block a user