From: Al Viro Date: Wed, 27 Apr 2016 17:25:33 +0000 (-0400) Subject: atomic_open(): don't bother with EEXIST check - it's done in do_last() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5249e411b4d456762641d98eb6aad22da4e0a30d;p=openwrt%2Fstaging%2Fblogic.git atomic_open(): don't bother with EEXIST check - it's done in do_last() Signed-off-by: Al Viro --- 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; }