summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-09-05 18:53:21 +0200
committerTom Haynes <loghyr@primarydata.com>2015-02-03 20:06:40 +0100
commit4579d6b897ee1b2557517fd536fb17eeb13481ad (patch)
tree92af129f8ab2576f6f2499520105a1745e5b3924 /fs/nfs/nfs4xdr.c
parentnfs: save server READ/WRITE/COMMIT status (diff)
downloadlinux-4579d6b897ee1b2557517fd536fb17eeb13481ad.tar.xz
linux-4579d6b897ee1b2557517fd536fb17eeb13481ad.zip
nfs41: pass iomode through layoutreturn args
So that it is possible to return a specific iomode layouts. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 7d8d7a47f771..3c3ff633dd17 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -2012,7 +2012,7 @@ encode_layoutreturn(struct xdr_stream *xdr,
p = reserve_space(xdr, 16);
*p++ = cpu_to_be32(0); /* reclaim. always 0 for now */
*p++ = cpu_to_be32(args->layout_type);
- *p++ = cpu_to_be32(IOMODE_ANY);
+ *p++ = cpu_to_be32(args->iomode);
*p = cpu_to_be32(RETURN_FILE);
p = reserve_space(xdr, 16);
p = xdr_encode_hyper(p, 0);