summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-07-11 21:00:04 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2018-07-12 16:04:13 +0200
commitea73ea7279884ba80896d4ea0f0443bf48b9e311 (patch)
tree4fd72a8f638d6c502ccb595e179a453819e18ded /fs/internal.h
parentpass creds to get_empty_filp(), make sure dentry_open() passes the right creds (diff)
downloadlinux-ea73ea7279884ba80896d4ea0f0443bf48b9e311.tar.xz
linux-ea73ea7279884ba80896d4ea0f0443bf48b9e311.zip
pass ->f_flags value to alloc_empty_file()
... and have it set the f_flags-derived part of ->f_mode. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 66473bf388e4..661c314aba30 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -93,7 +93,7 @@ extern void chroot_fs_refs(const struct path *, const struct path *);
/*
* file_table.c
*/
-extern struct file *alloc_empty_file(const struct cred *);
+extern struct file *alloc_empty_file(int, const struct cred *);
/*
* super.c