summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-04-27 20:25:33 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-03 02:51:11 +0300
commit5249e411b4d456762641d98eb6aad22da4e0a30d (patch)
tree9b0000139177fb4b023eb8c4a3d14f9ff3e52eea /fs/namei.c
parentdf889b363198d946c0286b3fb2cfcca18d08a029 (diff)
downloadlinux-5249e411b4d456762641d98eb6aad22da4e0a30d.tar.xz
atomic_open(): don't bother with EEXIST check - it's done in do_last()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 85d19e6cc8c0..eec7c0aa446d 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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;
}