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 <[email protected]>
This commit is contained in:
Al Viro 2018-07-11 15:00:04 -04:00
commit ea73ea7279
4 changed files with 9 additions and 13 deletions

View file

@ -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