[pnfs] [PATCH 26/37] pnfs: client layout cache: pnfs_layout_type segments list
Benny Halevy
bhalevy at panasas.com
Tue Jan 1 05:51:25 EST 2008
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/pnfs.c | 1 +
include/linux/nfs4_pnfs.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 9642269..ac3490b 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -503,6 +503,7 @@ alloc_init_layout(struct inode *ino, struct layoutdriver_io_operations *io_ops)
return NULL;
lo->refcount = 1;
+ INIT_LIST_HEAD(&lo->segs);
lo->roc_iomode = 0;
lo->inode = ino;
return lo;
diff --git a/include/linux/nfs4_pnfs.h b/include/linux/nfs4_pnfs.h
index f59e6c2..0df0676 100644
--- a/include/linux/nfs4_pnfs.h
+++ b/include/linux/nfs4_pnfs.h
@@ -38,6 +38,7 @@ struct pnfs_mount_type {
*/
struct pnfs_layout_type {
int refcount;
+ struct list_head segs; /* layout segments list */
int roc_iomode; /* iomode to return on close, 0=none */
struct inode *inode;
u8 ld_data[]; /* layout driver private data */
--
1.5.3.3
More information about the pNFS
mailing list