hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/fs/kernfs/kernfs-internal.h
....@@ -1,11 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * fs/kernfs/kernfs-internal.h - kernfs internal header file
34 *
45 * Copyright (c) 2001-3 Patrick Mochel
56 * Copyright (c) 2007 SUSE Linux Products GmbH
67 * Copyright (c) 2007, 2013 Tejun Heo <teheo@suse.de>
7
- *
8
- * This file is released under the GPLv2.
98 */
109
1110 #ifndef __KERNFS_INTERNAL_H
....@@ -17,13 +16,18 @@
1716 #include <linux/xattr.h>
1817
1918 #include <linux/kernfs.h>
19
+#include <linux/fs_context.h>
2020
2121 struct kernfs_iattrs {
22
- struct iattr ia_iattr;
23
- void *ia_secdata;
24
- u32 ia_secdata_len;
22
+ kuid_t ia_uid;
23
+ kgid_t ia_gid;
24
+ struct timespec64 ia_atime;
25
+ struct timespec64 ia_mtime;
26
+ struct timespec64 ia_ctime;
2527
2628 struct simple_xattrs xattrs;
29
+ atomic_t nr_user_xattrs;
30
+ atomic_t user_xattr_size;
2731 };
2832
2933 /* +1 to avoid triggering overflow warning when negating it */
....@@ -78,7 +82,7 @@
7882 }
7983
8084 extern const struct super_operations kernfs_sops;
81
-extern struct kmem_cache *kernfs_node_cache;
85
+extern struct kmem_cache *kernfs_node_cache, *kernfs_iattrs_cache;
8286
8387 /*
8488 * inode.c
....@@ -107,8 +111,6 @@
107111 const char *name, umode_t mode,
108112 kuid_t uid, kgid_t gid,
109113 unsigned flags);
110
-struct kernfs_node *kernfs_find_and_get_node_by_ino(struct kernfs_root *root,
111
- unsigned int ino);
112114
113115 /*
114116 * file.c