summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4file.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-08-26 21:11:39 +0800
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-27 19:44:38 -0400
commitc5c3fb5f975a8bcc42cd039b83d9a4729ce489bb (patch)
tree27aea122bed26e0a8e56bf4e157f3f8d886654a5 /fs/nfs/nfs4file.c
parentae57ca0f4fce219ef34c28f0edc210598c465a4d (diff)
downloadtalos-op-linux-c5c3fb5f975a8bcc42cd039b83d9a4729ce489bb.tar.gz
talos-op-linux-c5c3fb5f975a8bcc42cd039b83d9a4729ce489bb.zip
NFS: Make opened as optional argument in _nfs4_do_open
Check opened, only update it when non-NULL. It's not needs define an unused value for the opened when calling _nfs4_do_open. v3, same as v2. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4file.c')
-rw-r--r--fs/nfs/nfs4file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c
index dcd39d4e2efe..43f1590b9240 100644
--- a/fs/nfs/nfs4file.c
+++ b/fs/nfs/nfs4file.c
@@ -27,7 +27,6 @@ nfs4_file_open(struct inode *inode, struct file *filp)
struct inode *dir;
unsigned openflags = filp->f_flags;
struct iattr attr;
- int opened = 0;
int err;
/*
@@ -66,7 +65,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
nfs_sync_inode(inode);
}
- inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, &opened);
+ inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, NULL);
if (IS_ERR(inode)) {
err = PTR_ERR(inode);
switch (err) {
OpenPOWER on IntegriCloud