]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 24 Sep 2012 17:24:27 +0000 (13:24 -0400)
commit77fcdefd5bc746d5a8e7f6f18343d2e8ba1bead8
tree95a8629e5271541a62430bfeb822ce2561db7a7f
parentd8dafdd97f4e72d5de8802f820593382d91bdf64
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