diff options
author | khng300 <khng300@gmail.com> | 2021-02-09 19:17:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 19:17:29 +0000 |
commit | fc273894d2eda03a9317f7e28b9ce2816bb95db4 (patch) | |
tree | cd8c4f02a4aef6bb7704b19f57302efa84d3c359 /module/os/linux/zfs/zfs_znode.c | |
parent | 4f22619ae3ab62c60ae718bd911eb2d988ae168d (diff) | |
download | src-fc273894d2eda03a9317f7e28b9ce2816bb95db4.tar.gz src-fc273894d2eda03a9317f7e28b9ce2816bb95db4.zip |
Diffstat (limited to 'module/os/linux/zfs/zfs_znode.c')
-rw-r--r-- | module/os/linux/zfs/zfs_znode.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/module/os/linux/zfs/zfs_znode.c b/module/os/linux/zfs/zfs_znode.c index 3588a428ac89..d59c1bb0716a 100644 --- a/module/os/linux/zfs/zfs_znode.c +++ b/module/os/linux/zfs/zfs_znode.c @@ -479,14 +479,10 @@ zfs_set_inode_flags(znode_t *zp, struct inode *ip) } /* - * Update the embedded inode given the znode. We should work toward - * eliminating this function as soon as possible by removing values - * which are duplicated between the znode and inode. If the generic - * inode has the correct field it should be used, and the ZFS code - * updated to access the inode. This can be done incrementally. + * Update the embedded inode given the znode. */ void -zfs_inode_update(znode_t *zp) +zfs_znode_update_vfs(znode_t *zp) { zfsvfs_t *zfsvfs; struct inode *ip; @@ -602,7 +598,7 @@ zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, ZFS_TIME_DECODE(&ip->i_ctime, ctime); ip->i_ino = zp->z_id; - zfs_inode_update(zp); + zfs_znode_update_vfs(zp); zfs_inode_set_ops(zfsvfs, ip); /* @@ -1278,7 +1274,7 @@ zfs_rezget(znode_t *zp) zp->z_blksz = doi.doi_data_block_size; zp->z_atime_dirty = B_FALSE; - zfs_inode_update(zp); + zfs_znode_update_vfs(zp); /* * If the file has zero links, then it has been unlinked on the send @@ -1796,7 +1792,7 @@ log: dmu_tx_commit(tx); - zfs_inode_update(zp); + zfs_znode_update_vfs(zp); error = 0; out: |