]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: remove l_filep_open define
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 05:57:40 +0000 (22:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 05:57:40 +0000 (22:57 -0700)
Just call filep_open(), no need to rename the thing.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: hpdd-discuss <hpdd-discuss@lists.01.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/linux/lvfs_linux.h
drivers/staging/lustre/lustre/obdclass/llog_lvfs.c

index 3eab65a55bda0ff74ebb52f02e89cfadd504ac10..fff22ec1f869b837284aca6b8e0a3d8b241cb8de 100644 (file)
@@ -43,8 +43,6 @@
 
 #include "../lvfs.h"
 
-#define l_filp_open filp_open
-
 struct lvfs_run_ctxt;
 struct file *l_dentry_open(struct lvfs_run_ctxt *, struct dentry *,
                             int flags);
index a48cbe0565552ead921944981c9be17b609af547..1ba789f8d5263868caaf29116e065cef5cbc474e 100644 (file)
@@ -567,7 +567,7 @@ static struct file *llog_filp_open(char *dir, char *name, int flags, int mode)
        if (len >= PATH_MAX - 1) {
                filp = ERR_PTR(-ENAMETOOLONG);
        } else {
-               filp = l_filp_open(logname, flags, mode);
+               filp = filp_open(logname, flags, mode);
                if (IS_ERR(filp) && PTR_ERR(filp) != -ENOENT)
                        CERROR("logfile creation %s: %ld\n", logname,
                               PTR_ERR(filp));