diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2011-01-05 14:27:30 -0800 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2011-02-10 09:27:20 -0800 |
commit | 960e08fe3e2cdf5217996b9f42a01f7e20f2b97a (patch) | |
tree | 4b253ef28b86959a4398d7482c032e30e8b88bf5 /include | |
parent | 7304b6e50f656fbf4b126a4e94deac174133851c (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zfs_znode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zfs_znode.h b/include/sys/zfs_znode.h index 356092169..4dbecb4b5 100644 --- a/include/sys/zfs_znode.h +++ b/include/sys/zfs_znode.h @@ -326,6 +326,7 @@ extern dev_t zfs_cmpldev(uint64_t); extern int zfs_get_zplprop(objset_t *os, zfs_prop_t prop, uint64_t *value); extern int zfs_get_stats(objset_t *os, nvlist_t *nv); extern void zfs_znode_dmu_fini(znode_t *); +extern void zfs_inode_update(znode_t *); extern void zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, vsecattr_t *, zfs_fuid_info_t *, |