aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4filelayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4filelayout.h')
-rw-r--r--fs/nfs/nfs4filelayout.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/nfs4filelayout.h
index 43fe802dd678..dca47d786710 100644
--- a/fs/nfs/nfs4filelayout.h
+++ b/fs/nfs/nfs4filelayout.h
@@ -129,23 +129,13 @@ filelayout_mark_devid_invalid(struct nfs4_deviceid_node *node)
129} 129}
130 130
131static inline bool 131static inline bool
132filelayout_test_layout_invalid(struct pnfs_layout_hdr *lo)
133{
134 return test_bit(NFS_LAYOUT_INVALID, &lo->plh_flags);
135}
136
137static inline bool
138filelayout_test_devid_invalid(struct nfs4_deviceid_node *node) 132filelayout_test_devid_invalid(struct nfs4_deviceid_node *node)
139{ 133{
140 return test_bit(NFS_DEVICEID_INVALID, &node->flags); 134 return test_bit(NFS_DEVICEID_INVALID, &node->flags);
141} 135}
142 136
143static inline bool 137extern bool
144filelayout_reset_to_mds(struct pnfs_layout_segment *lseg) 138filelayout_test_devid_unavailable(struct nfs4_deviceid_node *node);
145{
146 return filelayout_test_devid_invalid(FILELAYOUT_DEVID_NODE(lseg)) ||
147 filelayout_test_layout_invalid(lseg->pls_layout);
148}
149 139
150extern struct nfs_fh * 140extern struct nfs_fh *
151nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j); 141nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j);
@@ -158,7 +148,7 @@ struct nfs4_pnfs_ds *nfs4_fl_prepare_ds(struct pnfs_layout_segment *lseg,
158extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); 148extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr);
159extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); 149extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr);
160struct nfs4_file_layout_dsaddr * 150struct nfs4_file_layout_dsaddr *
161get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags); 151filelayout_get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags);
162void nfs4_ds_disconnect(struct nfs_client *clp); 152void nfs4_ds_disconnect(struct nfs_client *clp);
163 153
164#endif /* FS_NFS_NFS4FILELAYOUT_H */ 154#endif /* FS_NFS_NFS4FILELAYOUT_H */