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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index c2f108640fc4..10937203d236 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -44,7 +44,6 @@ struct pnfs_layout_segment {
44enum { 44enum {
45 NFS_LAYOUT_RO_FAILED = 0, /* get ro layout failed stop trying */ 45 NFS_LAYOUT_RO_FAILED = 0, /* get ro layout failed stop trying */
46 NFS_LAYOUT_RW_FAILED, /* get rw layout failed stop trying */ 46 NFS_LAYOUT_RW_FAILED, /* get rw layout failed stop trying */
47 NFS_LAYOUT_STATEID_SET, /* have a valid layout stateid */
48}; 47};
49 48
50/* Per-layout driver specific registration structure */ 49/* Per-layout driver specific registration structure */
@@ -63,7 +62,6 @@ struct pnfs_layout_hdr {
63 unsigned long plh_refcount; 62 unsigned long plh_refcount;
64 struct list_head plh_layouts; /* other client layouts */ 63 struct list_head plh_layouts; /* other client layouts */
65 struct list_head plh_segs; /* layout segments list */ 64 struct list_head plh_segs; /* layout segments list */
66 seqlock_t plh_seqlock; /* Protects the stateid */
67 nfs4_stateid plh_stateid; 65 nfs4_stateid plh_stateid;
68 unsigned long plh_flags; 66 unsigned long plh_flags;
69 struct inode *plh_inode; 67 struct inode *plh_inode;
@@ -143,8 +141,9 @@ int pnfs_layout_process(struct nfs4_layoutget *lgp);
143void pnfs_destroy_layout(struct nfs_inode *); 141void pnfs_destroy_layout(struct nfs_inode *);
144void pnfs_destroy_all_layouts(struct nfs_client *); 142void pnfs_destroy_all_layouts(struct nfs_client *);
145void put_layout_hdr(struct inode *inode); 143void put_layout_hdr(struct inode *inode);
146void pnfs_get_layout_stateid(nfs4_stateid *dst, struct pnfs_layout_hdr *lo, 144int pnfs_choose_layoutget_stateid(nfs4_stateid *dst,
147 struct nfs4_state *open_state); 145 struct pnfs_layout_hdr *lo,
146 struct nfs4_state *open_state);
148 147
149 148
150static inline int lo_fail_bit(u32 iomode) 149static inline int lo_fail_bit(u32 iomode)