Skip to content

Commit d489cf9

Browse files
author
Al Viro
committed
atomic_open(): no need to pass struct open_flags anymore
argument had been unused since 1643b43 (lookup_open(): lift the "fallback to !O_CREAT" logics from atomic_open()) back in 2016 Signed-off-by: Al Viro <[email protected]>
1 parent ff326a3 commit d489cf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/namei.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,6 @@ static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t m
29332933
*/
29342934
static struct dentry *atomic_open(struct nameidata *nd, struct dentry *dentry,
29352935
struct file *file,
2936-
const struct open_flags *op,
29372936
int open_flag, umode_t mode)
29382937
{
29392938
struct dentry *const DENTRY_NOT_SET = (void *) -1UL;
@@ -3066,7 +3065,7 @@ static struct dentry *lookup_open(struct nameidata *nd, struct file *file,
30663065
}
30673066

30683067
if (dir_inode->i_op->atomic_open) {
3069-
dentry = atomic_open(nd, dentry, file, op, open_flag, mode);
3068+
dentry = atomic_open(nd, dentry, file, open_flag, mode);
30703069
if (unlikely(create_error) && dentry == ERR_PTR(-ENOENT))
30713070
dentry = ERR_PTR(create_error);
30723071
return dentry;

0 commit comments

Comments
 (0)