]> 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)
commit8fbff5fa7d8ff75441d477c16d5c8190ffe2bc55
tree4ecb63d30c879a679c91e3bd0b331f8aa135a81c
parentd18aafef2e6a322e30c30ecee6a065a7dee597e2
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