diff options
author | Andy Adamson <andros@netapp.com> | 2012-05-31 15:16:03 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-29 11:33:43 -0400 |
commit | 6e5b587d2f4271a1a4a47e3169db7157aefc31ed (patch) | |
tree | f3e782498aaa84e38c8ee2deb5f8a0a17e28d0ed | |
parent | e3074507d93a0b7f1430dec7c6addb307d4f30da (diff) |
NFSv4.1 handle OPEN O_CREATE mdsthreshold
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/nfs4proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 5a7b3723cc6f..c84c93c4cd36 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, | |||
2825 | struct dentry *de = dentry; | 2825 | struct dentry *de = dentry; |
2826 | struct nfs4_state *state; | 2826 | struct nfs4_state *state; |
2827 | struct rpc_cred *cred = NULL; | 2827 | struct rpc_cred *cred = NULL; |
2828 | struct nfs4_threshold **thp = NULL; | ||
2828 | fmode_t fmode = 0; | 2829 | fmode_t fmode = 0; |
2829 | int status = 0; | 2830 | int status = 0; |
2830 | 2831 | ||
@@ -2832,9 +2833,10 @@ nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, | |||
2832 | cred = ctx->cred; | 2833 | cred = ctx->cred; |
2833 | de = ctx->dentry; | 2834 | de = ctx->dentry; |
2834 | fmode = ctx->mode; | 2835 | fmode = ctx->mode; |
2836 | thp = &ctx->mdsthreshold; | ||
2835 | } | 2837 | } |
2836 | sattr->ia_mode &= ~current_umask(); | 2838 | sattr->ia_mode &= ~current_umask(); |
2837 | state = nfs4_do_open(dir, de, fmode, flags, sattr, cred, NULL); | 2839 | state = nfs4_do_open(dir, de, fmode, flags, sattr, cred, thp); |
2838 | d_drop(dentry); | 2840 | d_drop(dentry); |
2839 | if (IS_ERR(state)) { | 2841 | if (IS_ERR(state)) { |
2840 | status = PTR_ERR(state); | 2842 | status = PTR_ERR(state); |