diff options
Diffstat (limited to 'fs/nfs/nfs4filelayout.h')
| -rw-r--r-- | fs/nfs/nfs4filelayout.h | 16 |
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 | ||
| 131 | static inline bool | 131 | static inline bool |
| 132 | filelayout_test_layout_invalid(struct pnfs_layout_hdr *lo) | ||
| 133 | { | ||
| 134 | return test_bit(NFS_LAYOUT_INVALID, &lo->plh_flags); | ||
| 135 | } | ||
| 136 | |||
| 137 | static inline bool | ||
| 138 | filelayout_test_devid_invalid(struct nfs4_deviceid_node *node) | 132 | filelayout_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 | ||
| 143 | static inline bool | 137 | extern bool |
| 144 | filelayout_reset_to_mds(struct pnfs_layout_segment *lseg) | 138 | filelayout_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 | ||
| 150 | extern struct nfs_fh * | 140 | extern struct nfs_fh * |
| 151 | nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j); | 141 | nfs4_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, | |||
| 158 | extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); | 148 | extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); |
| 159 | extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); | 149 | extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); |
| 160 | struct nfs4_file_layout_dsaddr * | 150 | struct nfs4_file_layout_dsaddr * |
| 161 | get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags); | 151 | filelayout_get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags); |
| 162 | void nfs4_ds_disconnect(struct nfs_client *clp); | 152 | void nfs4_ds_disconnect(struct nfs_client *clp); |
| 163 | 153 | ||
| 164 | #endif /* FS_NFS_NFS4FILELAYOUT_H */ | 154 | #endif /* FS_NFS_NFS4FILELAYOUT_H */ |
