kernfs: clean up struct kernfs_iattrs
authorOndrej Mosnacek <omosnace@redhat.com>
Fri, 22 Feb 2019 14:57:12 +0000 (15:57 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 21 Mar 2019 01:42:14 +0000 (21:42 -0400)
commit05895219627c416e3ba78de84b83c6937387786b
tree4ecb63d30c879a679c91e3bd0b331f8aa135a81c
parentccd19d4cafaaf36132c372e77ee9304b707c1e70
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>
fs/kernfs/dir.c
fs/kernfs/inode.c
fs/kernfs/kernfs-internal.h
fs/kernfs/symlink.c