atomic_open(): don't bother with EEXIST check - it's done in do_last()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 27 Apr 2016 17:25:33 +0000 (13:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 2 May 2016 23:51:11 +0000 (19:51 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index 85d19e6cc8c04a1b7c4f6df32fe296658e289be3..eec7c0aa446d5136539b0981db3c5a0e4160ca2e 100644 (file)
@@ -2914,11 +2914,6 @@ static int atomic_open(struct nameidata *nd, struct dentry *dentry,
                                error = create_error;
                                goto out;
                        }
-               } else {
-                       if (excl && !(*opened & FILE_CREATED)) {
-                               error = -EEXIST;
-                               goto out;
-                       }
                }
                goto looked_up;
        }