]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01810d5de80c936679c5bb76ddaa998686fa69b7
tree4ecb63d30c879a679c91e3bd0b331f8aa135a81c
parent598d387fdd65ce4da6a08c46e4fa670dea66a85f
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