summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-05-31 15:16:03 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-29 11:33:43 -0400
commit6e5b587d2f4271a1a4a47e3169db7157aefc31ed (patch)
treef3e782498aaa84e38c8ee2deb5f8a0a17e28d0ed /fs
parente3074507d93a0b7f1430dec7c6addb307d4f30da (diff)
downloadlinux-3.10-6e5b587d2f4271a1a4a47e3169db7157aefc31ed.tar.gz
linux-3.10-6e5b587d2f4271a1a4a47e3169db7157aefc31ed.tar.bz2
linux-3.10-6e5b587d2f4271a1a4a47e3169db7157aefc31ed.zip
NFSv4.1 handle OPEN O_CREATE mdsthreshold
Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 5a7b3723cc6..c84c93c4cd3 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2825,6 +2825,7 @@ nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
struct dentry *de = dentry;
struct nfs4_state *state;
struct rpc_cred *cred = NULL;
+ struct nfs4_threshold **thp = NULL;
fmode_t fmode = 0;
int status = 0;
@@ -2832,9 +2833,10 @@ nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
cred = ctx->cred;
de = ctx->dentry;
fmode = ctx->mode;
+ thp = &ctx->mdsthreshold;
}
sattr->ia_mode &= ~current_umask();
- state = nfs4_do_open(dir, de, fmode, flags, sattr, cred, NULL);
+ state = nfs4_do_open(dir, de, fmode, flags, sattr, cred, thp);
d_drop(dentry);
if (IS_ERR(state)) {
status = PTR_ERR(state);