git: kernel - Refactor GETATTR_QUICK() -> GETATTR_LITE()

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Aug 8 09:37:52 PDT 2020


commit de9bb1335a6159a363e23d337b753c00df7c3479
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Aug 7 21:39:28 2020 -0700

    kernel - Refactor GETATTR_QUICK() -> GETATTR_LITE()
    
    * Refactor GETATTR_QUICK() into GETATTR_LITE() and use struct
      vattr_lite instead of struct vattr.  The original GETATTR_QUICK()
      just used a struct vattr.
    
      This change ensures that users of this new VOP do not attempt to
      access attr fields that are not populated.
    
    Suggested-by: mjg

Summary of changes:
 sys/kern/imgact_aout.c          |  2 +-
 sys/kern/imgact_elf.c           |  8 +++----
 sys/kern/kern_exec.c            | 26 ++++++++++-----------
 sys/kern/vfs_default.c          | 23 ++++++++++++++----
 sys/kern/vfs_nlookup.c          | 52 ++++++++++++++++++++---------------------
 sys/kern/vfs_syscalls.c         | 17 ++++++++++----
 sys/kern/vfs_vopops.c           | 16 ++++++-------
 sys/sys/imgact.h                |  2 +-
 sys/sys/nlookup.h               |  3 ++-
 sys/sys/vfscache.h              | 16 +++++++++++++
 sys/sys/vfsops.h                | 20 +++++++++++-----
 sys/sys/vnode.h                 |  2 +-
 sys/vfs/hammer2/hammer2_vnops.c | 30 +++++++++++++++---------
 sys/vfs/tmpfs/tmpfs_vnops.c     | 26 +++++++++++++--------
 sys/vfs/tmpfs/tmpfs_vnops.h     |  2 +-
 15 files changed, 154 insertions(+), 91 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/de9bb1335a6159a363e23d337b753c00df7c3479


-- 
DragonFly BSD source repository



More information about the Commits mailing list