summaryrefslogtreecommitdiff
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-19 00:41:18 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-29 00:03:09 +0400
commitb9e028fd89d6834558aa2a5bb30e5cff5c6c1059 (patch)
tree7333094e4b4e388c36bfb7f69683f46ae714051b /fs/nfs/pnfs.h
parentf86bbcf85db32596a0484477d1b8042005709049 (diff)
downloadlinux-b9e028fd89d6834558aa2a5bb30e5cff5c6c1059.tar.xz
NFSv4.1: Add helpers for setting/reading the I/O fail bit
...and make them local to the pnfs.c file. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 04958797fad0..e3eb7d1b17a8 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -274,12 +274,6 @@ pnfs_test_layout_returned(struct pnfs_layout_hdr *lo)
return test_bit(NFS_LAYOUT_RETURNED, &lo->plh_flags);
}
-static inline int lo_fail_bit(u32 iomode)
-{
- return iomode == IOMODE_RW ?
- NFS_LAYOUT_RW_FAILED : NFS_LAYOUT_RO_FAILED;
-}
-
static inline struct pnfs_layout_segment *
pnfs_get_lseg(struct pnfs_layout_segment *lseg)
{