]> git.proxmox.com Git - mirror_zfs.git/commit
Remove znode's z_uid/z_gid member
authorNikolay Borisov <n.borisov.lkml@gmail.com>
Sun, 22 May 2016 11:15:57 +0000 (14:15 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Jul 2016 20:21:49 +0000 (13:21 -0700)
commit2c6abf15ff5bcc979653eef0131f90d4f0fede21
tree29bc74006a16d50335196ccd1e7459b569e48b57
parent82a1b2d6289f9ceae0bee6f1e71d3bc29a8c5d16
Remove znode's z_uid/z_gid member

Remove duplicate z_uid/z_gid member which are also held in the
generic vfs inode struct. This is done by first removing the members
from struct znode and then using the KUID_TO_SUID/KGID_TO_SGID
macros to access the respective member from struct inode. In cases
where the uid/gids are being marshalled from/to disk, use the newly
introduced zfs_(uid|gid)_(read|write) functions to properly
save the uids rather than the internal kernel representation.

Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #4685
Issue #227
include/sys/trace_acl.h
include/sys/zfs_znode.h
module/zfs/zfs_acl.c
module/zfs/zfs_ctldir.c
module/zfs/zfs_dir.c
module/zfs/zfs_fuid.c
module/zfs/zfs_log.c
module/zfs/zfs_vfsops.c
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c