diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -796,25 +796,6 @@ cleanup_file: | |||
796 | return ERR_PTR(error); | 796 | return ERR_PTR(error); |
797 | } | 797 | } |
798 | 798 | ||
799 | static struct file *do_filp_open(int dfd, const char *filename, int flags, | ||
800 | int mode) | ||
801 | { | ||
802 | int error; | ||
803 | struct nameidata nd; | ||
804 | |||
805 | error = open_namei(dfd, filename, flags, mode, &nd); | ||
806 | if (!error) | ||
807 | return nameidata_to_filp(&nd, flags); | ||
808 | |||
809 | return ERR_PTR(error); | ||
810 | } | ||
811 | |||
812 | struct file *filp_open(const char *filename, int flags, int mode) | ||
813 | { | ||
814 | return do_filp_open(AT_FDCWD, filename, flags, mode); | ||
815 | } | ||
816 | EXPORT_SYMBOL(filp_open); | ||
817 | |||
818 | /** | 799 | /** |
819 | * lookup_instantiate_filp - instantiates the open intent filp | 800 | * lookup_instantiate_filp - instantiates the open intent filp |
820 | * @nd: pointer to nameidata | 801 | * @nd: pointer to nameidata |