HomeFreeBSD

Refactor generic inode time updating

Description

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

Details

Provenance
Nikolay Borisov <n.borisov.lkml@gmail.com>Authored on Aug 1 2016, 8:02 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 13 2016, 6:57 PM
Parents
rG524b4217b866: DLPX-44733 combine arc_buf_alloc_impl() with arc_buf_clone()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9f5f0019ab3c: Refactor generic inode time updating (authored by Nikolay Borisov <n.borisov.lkml@gmail.com>).Sep 13 2016, 6:57 PM