VFS: Add zfs_inode_update() helper
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Jan 2011 22:27:30 +0000 (14:27 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Feb 2011 17:27:20 +0000 (09:27 -0800)
commit960e08fe3e2cdf5217996b9f42a01f7e20f2b97a
tree4b253ef28b86959a4398d7482c032e30e8b88bf5
parent7304b6e50f656fbf4b126a4e94deac174133851c
VFS: Add zfs_inode_update() helper

For the moment we have left ZFS unchanged and it updates many values
as part of the znode.  However, some of these values should be set
in the inode.  For the moment this is handled by adding a function
called zfs_inode_update() which updates the inode based on the znode.

This is considered a workaround until we can systematically go
through the ZFS code and have it directly update the inode.  At
which point zfs_update_inode() can be dropped entirely.  Keeping
two copies of the same data isn't only inefficient it's a breeding
ground for bugs.
include/sys/zfs_znode.h
module/zfs/zfs_vfsops.c
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c