summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4file.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-08-26 15:11:39 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-28 01:44:38 +0200
commitc5c3fb5f975a8bcc42cd039b83d9a4729ce489bb (patch)
tree27aea122bed26e0a8e56bf4e157f3f8d886654a5 /fs/nfs/nfs4file.c
parentNFS: Check size by inode_newsize_ok in nfs_setattr (diff)
downloadlinux-c5c3fb5f975a8bcc42cd039b83d9a4729ce489bb.tar.xz
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) {