]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Call d_instantiate before unlocking inode
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Mar 2011 06:04:39 +0000 (23:04 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 7 Apr 2011 16:51:57 +0000 (09:51 -0700)
commitc85b224fafacafa49817101f26f0a9760a8d05d1
tree4e08918675d6590cd332e51162c9ecccb9794091
parentd433c206515e567c52ce09589033405a0ae3716e
Call d_instantiate before unlocking inode

Under Linux a dentry referencing an inode must be instantiated before
the inode is unlocked.  To accomplish this without overly modifing
the core ZFS code the dentry it passed via the vattr_t.  There are
cases such as replay when a dentry is not available.  In which case
it is obviously not initialized at inode creation time, if a dentry
is needed it will be spliced as when required via d_lookup().
module/zfs/zfs_dir.c
module/zfs/zfs_znode.c
module/zfs/zpl_inode.c