]> granicus.if.org Git - zfs/commit
Drop objid argument in zfs_znode_alloc() (sync with OpenZFS)
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 5 Jun 2019 21:18:46 +0000 (06:18 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Jun 2019 21:18:46 +0000 (14:18 -0700)
commit1a6889947eadb1602109e2f683041865205e8fa8
tree7d78b2a6f859dbd5b097bf380c7bd473fa42daf9
parent2ecc2020ef37f6b3901243a181e8c1a7bf0ad045
Drop objid argument in zfs_znode_alloc() (sync with OpenZFS)

Since zfs_znode_alloc() already takes dmu_buf_t*, taking another
uint64_t argument for objid is redundant. inode's ->i_ino does and
needs to match znode's ->z_id.

zfs_znode_alloc() in FreeBSD and illumos doesn't have this argument
since vnode doesn't have vnode# in VFS (hence ->z_id exists).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #8841
module/zfs/zfs_znode.c