]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
commit39280a5ae8443dcc1ab3bb5ebc205aab0855b849
tree7b0061d5fc54ebcee094d4d1d52f3040b029cd29
parent064172f3459a914277aa309b2afd3bd5d1c3289a
nfs41: move file layout macros to generic pnfs

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