]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_znode.c
Refactor generic inode time updating
authorNikolay Borisov <n.borisov.lkml@gmail.com>
Mon, 1 Aug 2016 20:02:25 +0000 (23:02 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Sep 2016 18:57:37 +0000 (11:57 -0700)
commit9f5f0019ab3c03f59060d752b0be69290ec1abb9
tree2a0d4cb16037a9b485071539ab703889ff5b128c
parent524b4217b866b4b9385bc3c4e80acf4f77459a89
Refactor generic inode time updating

ZFS doesn't provide a custom update_time method meaning it delegates
this job to the generic VFS layer. The only time when it needs to
set the various *time values is when the inode is being marshalled
to/from the disk. Do this by moving the relevant code from
zfs_inode_update_impl to zfs_node_alloc and zfs_rezget. As a result
from this change it is no longer necessary to have multiple versions
of the zfs_inode_update function - so just nuke them and leave only
one.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Issue #227
Closes #4916
module/zfs/zfs_znode.c