NFS: Prevent 3.0 from crashing if it receives a partial layout
commitee6dfa64be0c1e8976f20246278121bc9fcf1a24
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 18 Oct 2011 17:11:07 +0000 (18 10:11 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:46 +0000 (9 08:52 -0800)
tree601602d7d7ea56cb952a3401ca69fd97639ac111
parent0198f84095f61e3ae0643eddb76df9ac684dae43
NFS: Prevent 3.0 from crashing if it receives a partial layout

This is a backport of critical parts of
commit 7c24d9489f "NFSv4.1: File layout only supports whole file layouts"

It prevents the file layout driver from (incorrectly) using
partial layouts, but ignores the part of the referenced commmit that
relies on additional machinery to change the LAYOUTGET request
based on layout driver.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/nfs4filelayout.c
fs/nfs/pnfs.c