Skip to contentSkip to conversation

fs: uapi: add a public linux/statfs.h header

PATCH New Thomas Weißschuh 1 participant 1 message Apr 1 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: uapi: add a public linux/statfs.h header

Currently the statfs UAPI definitions are only available from the asm/ namespace, which is not meant to be used directly by applications.

Add a public UAPI header and adapt the internal linux/statfs.h to it.

---
 include/linux/statfs.h      | 3 ++-
 include/uapi/linux/statfs.h | 7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
include/linux/statfs.h +2 -1
index 02c862686ea3..ee858f85299e 100644
@@ -2,8 +2,9 @@
 #ifndef _LINUX_STATFS_H
 #define _LINUX_STATFS_H
 
+#include <uapi/linux/statfs.h>
+
 #include <linux/types.h>
-#include <asm/statfs.h>
 #include <asm/byteorder.h>
 
 struct kstatfs {
include/uapi/linux/statfs.h new file +7 -0
new file mode 100644
index 000000000000..7ebf2eae7dab
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _UAPI_LINUX_STATFS_H
+#define _UAPI_LINUX_STATFS_H
+
+#include <asm/statfs.h>
+
+#endif /* _UAPI_LINUX_STATFS_H */

---
base-commit: dbf00d8d23b43a7a1d717e704c50651731d01d71
change-id: 20260401-uapi-statfs-94417524d5d4

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>