Commit 8c36242b authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre/obd: Rename lprocfs_add_symlink to ldebugfs_add_symlink

Signed-off-by: default avatarDmitry Eremin <dmiter4ever@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 617219c9
...@@ -572,8 +572,8 @@ extern struct proc_dir_entry *lprocfs_add_simple(struct proc_dir_entry *root, ...@@ -572,8 +572,8 @@ extern struct proc_dir_entry *lprocfs_add_simple(struct proc_dir_entry *root,
char *name, char *name,
void *data, void *data,
struct file_operations *fops); struct file_operations *fops);
extern struct proc_dir_entry * extern struct dentry *
lprocfs_add_symlink(const char *name, struct proc_dir_entry *parent, ldebugfs_add_symlink(const char *name, struct dentry *parent,
const char *format, ...); const char *format, ...);
extern void lprocfs_free_per_client_stats(struct obd_device *obd); extern void lprocfs_free_per_client_stats(struct obd_device *obd);
extern int extern int
...@@ -905,20 +905,12 @@ static inline void lprocfs_free_md_stats(struct obd_device *obddev) ...@@ -905,20 +905,12 @@ static inline void lprocfs_free_md_stats(struct obd_device *obddev)
struct obd_export; struct obd_export;
static inline int lprocfs_add_clear_entry(struct obd_export *exp) static inline int lprocfs_add_clear_entry(struct obd_export *exp)
{ return 0; } { return 0; }
static inline int lprocfs_exp_setup(struct obd_export *exp,
lnet_nid_t *peer_nid,
int *newnid)
{ return 0; }
static inline int lprocfs_exp_cleanup(struct obd_export *exp) static inline int lprocfs_exp_cleanup(struct obd_export *exp)
{ return 0; } { return 0; }
static inline struct proc_dir_entry * static inline struct proc_dir_entry *
lprocfs_add_simple(struct proc_dir_entry *root, char *name, lprocfs_add_simple(struct proc_dir_entry *root, char *name,
void *data, struct file_operations *fops) void *data, struct file_operations *fops)
{return 0; } {return 0; }
static inline struct proc_dir_entry *
lprocfs_add_symlink(const char *name, struct proc_dir_entry *parent,
const char *format, ...)
{return NULL; }
static inline void lprocfs_free_per_client_stats(struct obd_device *obd) static inline void lprocfs_free_per_client_stats(struct obd_device *obd)
{ return; } { return; }
static inline static inline
......
...@@ -289,10 +289,10 @@ struct proc_dir_entry *lprocfs_add_simple(struct proc_dir_entry *root, ...@@ -289,10 +289,10 @@ struct proc_dir_entry *lprocfs_add_simple(struct proc_dir_entry *root,
} }
EXPORT_SYMBOL(lprocfs_add_simple); EXPORT_SYMBOL(lprocfs_add_simple);
struct proc_dir_entry *lprocfs_add_symlink(const char *name, struct dentry *ldebugfs_add_symlink(const char *name, struct dentry *parent,
struct proc_dir_entry *parent, const char *format, ...) const char *format, ...)
{ {
struct proc_dir_entry *entry; struct dentry *entry;
char *dest; char *dest;
va_list ap; va_list ap;
...@@ -307,15 +307,17 @@ struct proc_dir_entry *lprocfs_add_symlink(const char *name, ...@@ -307,15 +307,17 @@ struct proc_dir_entry *lprocfs_add_symlink(const char *name,
vsnprintf(dest, MAX_STRING_SIZE, format, ap); vsnprintf(dest, MAX_STRING_SIZE, format, ap);
va_end(ap); va_end(ap);
entry = proc_symlink(name, parent, dest); entry = debugfs_create_symlink(name, parent, dest);
if (entry == NULL) if (IS_ERR_OR_NULL(entry)) {
CERROR("LprocFS: Could not create symbolic link from %s to %s", CERROR("LdebugFS: Could not create symbolic link from %s to %s",
name, dest); name, dest);
entry = NULL;
}
kfree(dest); kfree(dest);
return entry; return entry;
} }
EXPORT_SYMBOL(lprocfs_add_symlink); EXPORT_SYMBOL(ldebugfs_add_symlink);
static struct file_operations lprocfs_generic_fops = { }; static struct file_operations lprocfs_generic_fops = { };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment