summaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-10-28 00:11:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2026-01-13 15:18:07 -0500
commit541003b576c3e3c328314398a6df76eb3cebf847 (patch)
tree8508ed2011a896b023932dd7efe03270da56d6f4 /fs/open.c
parent2e2d64aea5c59ba976fced4bf44832ea425a3f3f (diff)
downloadlinux-next-541003b576c3e3c328314398a6df76eb3cebf847.tar.gz
linux-next-541003b576c3e3c328314398a6df76eb3cebf847.zip
rename do_filp_open() to do_file_open()
"filp" thing never made sense; seeing that there are exactly 4 callers in the entire tree (and it's neither exported nor even declared in linux/*/*.h), there's no point keeping that ugliness. FWIW, the 'filp' thing did originate in OSD&I; for some reason Tanenbaum decided to call the object representing an opened file 'struct filp', the last letter standing for 'position'. In all Unices, Linux included, the corresponding object had always been 'struct file'... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/open.c b/fs/open.c
index 2fea68991d42..3d2e2a2554c5 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -1382,7 +1382,7 @@ struct file *file_open_name(struct filename *name, int flags, umode_t mode)
int err = build_open_flags(&how, &op);
if (err)
return ERR_PTR(err);
- return do_filp_open(AT_FDCWD, name, &op);
+ return do_file_open(AT_FDCWD, name, &op);
}
/**
@@ -1436,7 +1436,7 @@ static int do_sys_openat2(int dfd, const char __user *filename,
if (IS_ERR(tmp))
return PTR_ERR(tmp);
- return FD_ADD(how->flags, do_filp_open(dfd, tmp, &op));
+ return FD_ADD(how->flags, do_file_open(dfd, tmp, &op));
}
int do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)