nfs: Don't setting FILE_CREATED flags always
authorKinglong Mee <kinglongmee@gmail.com>
Wed, 1 Jul 2015 03:57:49 +0000 (11:57 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 1 Jul 2015 15:30:21 +0000 (11:30 -0400)
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>
fs/nfs/dir.c

index b2c8b31b2be77d9a1d524b230ed2b66e479ad3fe..21457bb0edd62b42af307d5850b336711f41e82f 100644 (file)
@@ -1470,9 +1470,6 @@ static int nfs_finish_open(struct nfs_open_context *ctx,
 {
        int err;
 
-       if ((open_flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
-               *opened |= FILE_CREATED;
-
        err = finish_open(file, dentry, do_open, opened);
        if (err)
                goto out;