]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_znode.c
Refactor inode->i_mode management
authorlorddoskias <lorddoskias@gmail.com>
Tue, 27 Sep 2016 21:08:52 +0000 (00:08 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Sep 2016 21:08:52 +0000 (14:08 -0700)
commit12fa7f3436fbd89f4d6b00c2c076405e7a21d62f
tree123b980b9c8818a13ceabcfb874d54f8c8ef60b9
parentdf7c4059cb9ace35dfcbe37c68d27614191d0ef0
Refactor inode->i_mode management

Refactor the code in such a way so that inode->i_mode is being set
at the same time zp->z_mode is being changed. This has the effect of
keeping both in sync without relying on zfs_inode_update.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Closes #5158
module/zfs/zfs_acl.c
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c