nfs41: move file layout macros to generic pnfs
authorPeng Tao <tao.peng@primarydata.com>
Fri, 30 May 2014 10:15:55 +0000 (18:15 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:33 +0000 (11:06 -0800)
They can be reused by flexfile layout as well.

Also add a code such that if read fails on one DS and
there are other DSes available to use, don't resend
through MDS but through pNFS so that client can read
from other DSes.

Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
fs/nfs/filelayout/filelayout.h
fs/nfs/pnfs.h

Simple merge
diff --cc fs/nfs/pnfs.h
Simple merge