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, 6 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index aa9fa1b1ff4a..aacda7fbb536 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -63,7 +63,6 @@ enum {
63 NFS_LAYOUT_BULK_RECALL, /* bulk recall affecting layout */ 63 NFS_LAYOUT_BULK_RECALL, /* bulk recall affecting layout */
64 NFS_LAYOUT_ROC, /* some lseg had roc bit set */ 64 NFS_LAYOUT_ROC, /* some lseg had roc bit set */
65 NFS_LAYOUT_DESTROYED, /* no new use of layout allowed */ 65 NFS_LAYOUT_DESTROYED, /* no new use of layout allowed */
66 NFS_LAYOUT_INVALID, /* layout is being destroyed */
67 NFS_LAYOUT_RETURNED, /* layout has already been returned */ 66 NFS_LAYOUT_RETURNED, /* layout has already been returned */
68}; 67};
69 68
@@ -279,6 +278,12 @@ pnfs_test_layout_returned(struct pnfs_layout_hdr *lo)
279 return test_bit(NFS_LAYOUT_RETURNED, &lo->plh_flags); 278 return test_bit(NFS_LAYOUT_RETURNED, &lo->plh_flags);
280} 279}
281 280
281static inline bool
282pnfs_test_layout_destroyed(struct pnfs_layout_hdr *lo)
283{
284 return test_bit(NFS_LAYOUT_DESTROYED, &lo->plh_flags);
285}
286
282static inline struct pnfs_layout_segment * 287static inline struct pnfs_layout_segment *
283pnfs_get_lseg(struct pnfs_layout_segment *lseg) 288pnfs_get_lseg(struct pnfs_layout_segment *lseg)
284{ 289{