diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-20 21:07:45 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-28 22:03:12 +0200 |
commit | 965938b83b19aeffdc1d16ce9947c8c127e8f59b (patch) | |
tree | 40288cb09fb91d508cc7e43ce565aa9b3a2a6137 /fs/nfs/nfs4filelayout.h | |
parent | NFSv4.1: Simplify the pNFS return-on-close code (diff) | |
download | linux-965938b83b19aeffdc1d16ce9947c8c127e8f59b.tar.xz linux-965938b83b19aeffdc1d16ce9947c8c127e8f59b.zip |
NFSv4.1: Get rid of pNFS layout state "NFS_LAYOUT_INVALID"
In all cases where we set NFS_LAYOUT_INVALID, we also set NFS_LAYOUT_DESTROYED.
Furthermore, in all cases where we test for NFS_LAYOUT_INVALID, we should
also be testing for NFS_LAYOUT_DESTROYED, since the latter means that
we hold no valid layout segments.
Ergo the two are redundant.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4filelayout.h')
-rw-r--r-- | fs/nfs/nfs4filelayout.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/nfs4filelayout.h index 10b0f134400b..dca47d786710 100644 --- a/fs/nfs/nfs4filelayout.h +++ b/fs/nfs/nfs4filelayout.h @@ -129,12 +129,6 @@ filelayout_mark_devid_invalid(struct nfs4_deviceid_node *node) } static inline bool -filelayout_test_layout_invalid(struct pnfs_layout_hdr *lo) -{ - return test_bit(NFS_LAYOUT_INVALID, &lo->plh_flags); -} - -static inline bool filelayout_test_devid_invalid(struct nfs4_deviceid_node *node) { return test_bit(NFS_DEVICEID_INVALID, &node->flags); |