staging: lustre: remove l_dentry define
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 05:53:32 +0000 (22:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 05:53:32 +0000 (22:53 -0700)
It's a 'dentry', so use it instead of something else.

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/lvfs/lvfs_linux.c
drivers/staging/lustre/lustre/obdclass/llog_lvfs.c

index 0dea1789321d1b784471a1641d2e888442441c58..cf6d5807af61bfb35008d917daac6c47728c33f0 100644 (file)
 #include "../lvfs.h"
 
 #define l_file file
-#define l_dentry dentry
 
 #define l_filp_open filp_open
 
 struct lvfs_run_ctxt;
-struct l_file *l_dentry_open(struct lvfs_run_ctxt *, struct l_dentry *,
+struct l_file *l_dentry_open(struct lvfs_run_ctxt *, struct dentry *,
                             int flags);
 
 struct l_linux_dirent {
index a519a5ca69ba3d612a12b0b137446ea234e06c5e..2decf7ddc6c866d99933b25de3194dacaa0e5fb2 100644 (file)
@@ -233,7 +233,7 @@ put_old:
 EXPORT_SYMBOL(lustre_rename);
 
 /* Note: dput(dchild) will *not* be called if there is an error */
-struct l_file *l_dentry_open(struct lvfs_run_ctxt *ctxt, struct l_dentry *de,
+struct l_file *l_dentry_open(struct lvfs_run_ctxt *ctxt, struct dentry *de,
                             int flags)
 {
        struct path path = {
index 85d64bec16576c1bd85918724c00568a99d36066..c707cd88eb45b07fb90c4ea97d35b432add16dec 100644 (file)
@@ -581,7 +581,7 @@ static int llog_lvfs_open(const struct lu_env *env,  struct llog_handle *handle,
                          enum llog_open_param open_param)
 {
        struct llog_ctxt        *ctxt = handle->lgh_ctxt;
-       struct l_dentry         *dchild = NULL;
+       struct dentry           *dchild = NULL;
        struct obd_device       *obd;
        int                      rc = 0;
 
@@ -672,7 +672,7 @@ static int llog_lvfs_create(const struct lu_env *env,
 {
        struct llog_ctxt        *ctxt = handle->lgh_ctxt;
        struct obd_device       *obd;
-       struct l_dentry         *dchild = NULL;
+       struct dentry           *dchild = NULL;
        struct file             *file;
        struct obdo             *oa = NULL;
        int                      rc = 0;