mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 20:33:49 -04:00
atomic_open(): don't bother with EEXIST check - it's done in do_last()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user