summaryrefslogtreecommitdiffstats
path: root/fs/kernfs/kernfs-internal.h
diff options
context:
space:
mode:
authorOndrej Mosnacek2019-02-22 15:57:12 +0100
committerPaul Moore2019-03-21 02:42:14 +0100
commit05895219627c416e3ba78de84b83c6937387786b (patch)
tree4ecb63d30c879a679c91e3bd0b331f8aa135a81c /fs/kernfs/kernfs-internal.h
parentscripts/selinux: fix build (diff)
downloadkernel-qcow2-linux-05895219627c416e3ba78de84b83c6937387786b.tar.gz
kernel-qcow2-linux-05895219627c416e3ba78de84b83c6937387786b.tar.xz
kernel-qcow2-linux-05895219627c416e3ba78de84b83c6937387786b.zip
kernfs: clean up struct kernfs_iattrs
Right now, kernfs_iattrs embeds the whole struct iattr, even though it doesn't really use half of its fields... This both leads to wasting space and makes the code look awkward. Let's just list the few fields we need directly in struct kernfs_iattrs. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> [PM: merged a number of chunks manually due to fuzz] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
-rw-r--r--fs/kernfs/kernfs-internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h
index 0b7d197a904c..385a5ca0b2f6 100644
--- a/fs/kernfs/kernfs-internal.h
+++ b/fs/kernfs/kernfs-internal.h
@@ -20,7 +20,11 @@
#include <linux/fs_context.h>
struct kernfs_iattrs {
- struct iattr ia_iattr;
+ kuid_t ia_uid;
+ kgid_t ia_gid;
+ struct timespec64 ia_atime;
+ struct timespec64 ia_mtime;
+ struct timespec64 ia_ctime;
void *ia_secdata;
u32 ia_secdata_len;