diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-18 16:41:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-28 16:03:09 -0400 |
commit | b9e028fd89d6834558aa2a5bb30e5cff5c6c1059 (patch) | |
tree | 7333094e4b4e388c36bfb7f69683f46ae714051b /fs/nfs/pnfs.h | |
parent | f86bbcf85db32596a0484477d1b8042005709049 (diff) | |
download | blackbird-op-linux-b9e028fd89d6834558aa2a5bb30e5cff5c6c1059.tar.gz blackbird-op-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 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 6 |
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) { |