NFSv4.1: Get rid of pNFS layout state "NFS_LAYOUT_INVALID"
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 20 Sep 2012 19:07:45 +0000 (15:07 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 20:03:12 +0000 (16:03 -0400)
commit965938b83b19aeffdc1d16ce9947c8c127e8f59b
tree40288cb09fb91d508cc7e43ce565aa9b3a2a6137
parent1f7977c1368afc483908281daaffd31bca5a8d1e
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>
fs/nfs/nfs4filelayout.c
fs/nfs/nfs4filelayout.h
fs/nfs/pnfs.h