aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-03-11 08:07:53 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-04-02 01:09:31 -0400
commitd489cf9a3e88aafc6c9f55c36ff7bbca2c25d54a (patch)
treeba7d05188307fd29bb43194d6c68b6ba2dc22acd /fs/namei.c
parentff326a3299660e46d4eb8876b217fee38638281a (diff)
downloadlinux-d489cf9a3e88aafc6c9f55c36ff7bbca2c25d54a.tar.gz
atomic_open(): no need to pass struct open_flags anymore
argument had been unused since 1643b43fbd052 (lookup_open(): lift the "fallback to !O_CREAT" logics from atomic_open()) back in 2016 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 2c901a022faf5..1607560f29320 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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,
struct file *file,
- const struct open_flags *op,
int open_flag, umode_t mode)
{
struct dentry *const DENTRY_NOT_SET = (void *) -1UL;
@@ -3066,7 +3065,7 @@ static struct dentry *lookup_open(struct nameidata *nd, struct file *file,
}
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))
dentry = ERR_PTR(create_error);
return dentry;