]> granicus.if.org Git - spl/commitdiff
Add .va_dentry helper
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Mar 2011 05:46:38 +0000 (22:46 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 7 Apr 2011 03:06:03 +0000 (20:06 -0700)
While this extra structure memory does not exist under Solaris
it is needed under Linux to pass the dentry.  This allows the
dentry to be easily instantiated before the inode is unlocked.

include/sys/vnode.h

index 09c22585a0f7f2a3eea517d98237441a44cf5faf..7d655e5ef79a2826b91d5af8a6af737d844a790c 100644 (file)
@@ -140,6 +140,7 @@ typedef struct vattr {
        uint64_t        va_nblocks;     /* space used */
        uint32_t        va_blksize;     /* block size */
        uint32_t        va_seq;         /* sequence */
+       struct dentry   *va_dentry;     /* dentry to wire */
 } vattr_t;
 
 typedef struct vnode {