summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-18 22:41:18 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-28 22:03:09 +0200
commitb9e028fd89d6834558aa2a5bb30e5cff5c6c1059 (patch)
tree7333094e4b4e388c36bfb7f69683f46ae714051b /fs/nfs/pnfs.h
parentNFSv4.1: Replace dprintk() in pnfs_update_layout with something less buggy (diff)
downloadlinux-b9e028fd89d6834558aa2a5bb30e5cff5c6c1059.tar.xz
linux-b9e028fd89d6834558aa2a5bb30e5cff5c6c1059.zip
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 '')
-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)
{