[pnfs] [PATCH 08/29] pnfs: initalize pnfs inode fields

Benny Halevy bhalevy at panasas.com
Fri Dec 28 03:44:41 EST 2007


From: Andy Adamson <andros at umich.edu>

Signed-off-by: Andy Adamson<andros at umich.edu>
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfs/inode.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index b9acbba..1a0df25 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1158,6 +1158,11 @@ struct inode *nfs_alloc_inode(struct super_block *sb)
 #ifdef CONFIG_NFS_V4
 	nfsi->nfs4_acl = NULL;
 #endif /* CONFIG_NFS_V4 */
+#ifdef CONFIG_PNFS
+	nfsi->pnfs_layout_state = 0;
+	nfsi->current_layout = NULL;
+	nfsi->layoutcommit_ctx = NULL;
+#endif /* CONFIG_PNFS */
 	return &nfsi->vfs_inode;
 }
 
-- 
1.5.3.3



More information about the pNFS mailing list