aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2015-06-30 23:57:49 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-07-01 11:30:21 -0400
commit2785110d2e5c5bad54c8364391e02e3dd21eccf3 (patch)
tree8fa41d48641b58a9fe1a2aebbc79d5191b8f448a
parent6a062a3687c20b80362b04e1ae7c9772d511977d (diff)
nfs: Don't setting FILE_CREATED flags always
Commit 5bc2afc2b5 "NFSv4: Honour the 'opened' parameter in the atomic_open() filesystem method" have support the opened arguments now. Also, Commit 03da633aa7 "atomic_open: take care of EEXIST in no-open case with O_CREAT|O_EXCL in fs/namei.c" have change vfs's logical. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r--fs/nfs/dir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index b2c8b31b2be7..21457bb0edd6 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1470,9 +1470,6 @@ static int nfs_finish_open(struct nfs_open_context *ctx,
1470{ 1470{
1471 int err; 1471 int err;
1472 1472
1473 if ((open_flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
1474 *opened |= FILE_CREATED;
1475
1476 err = finish_open(file, dentry, do_open, opened); 1473 err = finish_open(file, dentry, do_open, opened);
1477 if (err) 1474 if (err)
1478 goto out; 1475 goto out;