]> 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>
Fri, 21 Sep 2012 01:32:34 +0000 (21:32 -0400)
commit7087623a65b9bcb140e3e008c676b835a7f2984b
tree0ee795def101e4fbb61c03d7ee1d5174833cb994
parenta9028ec360d8bbc0821a65f0a03ecacc1748ebec
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