Commit d489cf9a authored by Al Viro's avatar Al Viro

atomic_open(): no need to pass struct open_flags anymore

argument had been unused since 1643b43f (lookup_open(): lift the
"fallback to !O_CREAT" logics from atomic_open()) back in 2016
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ff326a32
...@@ -2933,7 +2933,6 @@ static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t m ...@@ -2933,7 +2933,6 @@ static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t m
*/ */
static struct dentry *atomic_open(struct nameidata *nd, struct dentry *dentry, static struct dentry *atomic_open(struct nameidata *nd, struct dentry *dentry,
struct file *file, struct file *file,
const struct open_flags *op,
int open_flag, umode_t mode) int open_flag, umode_t mode)
{ {
struct dentry *const DENTRY_NOT_SET = (void *) -1UL; struct dentry *const DENTRY_NOT_SET = (void *) -1UL;
...@@ -3066,7 +3065,7 @@ static struct dentry *lookup_open(struct nameidata *nd, struct file *file, ...@@ -3066,7 +3065,7 @@ static struct dentry *lookup_open(struct nameidata *nd, struct file *file,
} }
if (dir_inode->i_op->atomic_open) { if (dir_inode->i_op->atomic_open) {
dentry = atomic_open(nd, dentry, file, op, open_flag, mode); dentry = atomic_open(nd, dentry, file, open_flag, mode);
if (unlikely(create_error) && dentry == ERR_PTR(-ENOENT)) if (unlikely(create_error) && dentry == ERR_PTR(-ENOENT))
dentry = ERR_PTR(create_error); dentry = ERR_PTR(create_error);
return dentry; return dentry;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment