Skip to content

Commit 0a2c705

Browse files
neilbrownbrauner
authored andcommitted
debugfs: rename start_creating() to debugfs_start_creating()
start_creating() is a generic name which I would like to use for a function similar to simple_start_creating(), only not quite so simple. debugfs is using this name which, though static, will cause complaints if then name is given a different signature in a header file. So rename it to debugfs_start_creating(). Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 3d18f80 commit 0a2c705

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

fs/debugfs/inode.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
353353
}
354354
EXPORT_SYMBOL_GPL(debugfs_lookup);
355355

356-
static struct dentry *start_creating(const char *name, struct dentry *parent)
356+
static struct dentry *debugfs_start_creating(const char *name,
357+
struct dentry *parent)
357358
{
358359
struct dentry *dentry;
359360
int error;
@@ -419,7 +420,7 @@ static struct dentry *__debugfs_create_file(const char *name, umode_t mode,
419420
if (!(mode & S_IFMT))
420421
mode |= S_IFREG;
421422
BUG_ON(!S_ISREG(mode));
422-
dentry = start_creating(name, parent);
423+
dentry = debugfs_start_creating(name, parent);
423424

424425
if (IS_ERR(dentry))
425426
return dentry;
@@ -568,7 +569,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_file_size);
568569
*/
569570
struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
570571
{
571-
struct dentry *dentry = start_creating(name, parent);
572+
struct dentry *dentry = debugfs_start_creating(name, parent);
572573
struct inode *inode;
573574

574575
if (IS_ERR(dentry))
@@ -615,7 +616,7 @@ struct dentry *debugfs_create_automount(const char *name,
615616
debugfs_automount_t f,
616617
void *data)
617618
{
618-
struct dentry *dentry = start_creating(name, parent);
619+
struct dentry *dentry = debugfs_start_creating(name, parent);
619620
struct inode *inode;
620621

621622
if (IS_ERR(dentry))
@@ -678,7 +679,7 @@ struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
678679
if (!link)
679680
return ERR_PTR(-ENOMEM);
680681

681-
dentry = start_creating(name, parent);
682+
dentry = debugfs_start_creating(name, parent);
682683
if (IS_ERR(dentry)) {
683684
kfree(link);
684685
return dentry;

0 commit comments

Comments
 (0)