mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
switch do_filp_open() to struct open_flags
take calculation of open_flags by open(2) arguments into new helper in fs/open.c, move filp_open() over there, have it and do_sys_open() use that helper, switch exec.c callers of do_filp_open() to explicit (and constant) struct open_flags. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
c3e380b0b3
commit
47c805dc2d
5 changed files with 101 additions and 88 deletions
|
|
@ -106,6 +106,14 @@ extern void put_super(struct super_block *sb);
|
|||
struct nameidata;
|
||||
extern struct file *nameidata_to_filp(struct nameidata *);
|
||||
extern void release_open_intent(struct nameidata *);
|
||||
struct open_flags {
|
||||
int open_flag;
|
||||
int mode;
|
||||
int acc_mode;
|
||||
int intent;
|
||||
};
|
||||
extern struct file *do_filp_open(int dfd, const char *pathname,
|
||||
const struct open_flags *op, int lookup_flags);
|
||||
|
||||
/*
|
||||
* inode.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue