aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/open.c b/fs/open.c
index 5ab3f3f079c0..8111947905d8 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -796,25 +796,6 @@ cleanup_file:
796 return ERR_PTR(error); 796 return ERR_PTR(error);
797} 797}
798 798
799static 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
812struct file *filp_open(const char *filename, int flags, int mode)
813{
814 return do_filp_open(AT_FDCWD, filename, flags, mode);
815}
816EXPORT_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