aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 10937203d236..787253e6fca3 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -30,10 +30,15 @@
30#ifndef FS_NFS_PNFS_H 30#ifndef FS_NFS_PNFS_H
31#define FS_NFS_PNFS_H 31#define FS_NFS_PNFS_H
32 32
33enum {
34 NFS_LSEG_VALID = 0, /* cleared when lseg is recalled/returned */
35};
36
33struct pnfs_layout_segment { 37struct pnfs_layout_segment {
34 struct list_head pls_list; 38 struct list_head pls_list;
35 struct pnfs_layout_range pls_range; 39 struct pnfs_layout_range pls_range;
36 struct kref pls_refcount; 40 atomic_t pls_refcount;
41 unsigned long pls_flags;
37 struct pnfs_layout_hdr *pls_layout; 42 struct pnfs_layout_hdr *pls_layout;
38}; 43};
39 44
@@ -44,6 +49,7 @@ struct pnfs_layout_segment {
44enum { 49enum {
45 NFS_LAYOUT_RO_FAILED = 0, /* get ro layout failed stop trying */ 50 NFS_LAYOUT_RO_FAILED = 0, /* get ro layout failed stop trying */
46 NFS_LAYOUT_RW_FAILED, /* get rw layout failed stop trying */ 51 NFS_LAYOUT_RW_FAILED, /* get rw layout failed stop trying */
52 NFS_LAYOUT_DESTROYED, /* no new use of layout allowed */
47}; 53};
48 54
49/* Per-layout driver specific registration structure */ 55/* Per-layout driver specific registration structure */