From: NeilBrown <[email protected]>

By not using the generic end_creating() name here we are free to use it
more globally for a more generic function.
This should have been done when start_creating() was renamed.

For consistency, also rename failed_creating().

Reviewed-by: Amir Goldstein <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
---
 fs/debugfs/inode.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 661a99a7dfbe..f241b9df642a 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -403,7 +403,7 @@ static struct dentry *debugfs_start_creating(const char 
*name,
        return dentry;
 }
 
-static struct dentry *failed_creating(struct dentry *dentry)
+static struct dentry *debugfs_failed_creating(struct dentry *dentry)
 {
        inode_unlock(d_inode(dentry->d_parent));
        dput(dentry);
@@ -411,7 +411,7 @@ static struct dentry *failed_creating(struct dentry *dentry)
        return ERR_PTR(-ENOMEM);
 }
 
-static struct dentry *end_creating(struct dentry *dentry)
+static struct dentry *debugfs_end_creating(struct dentry *dentry)
 {
        inode_unlock(d_inode(dentry->d_parent));
        return dentry;
@@ -435,7 +435,7 @@ static struct dentry *__debugfs_create_file(const char 
*name, umode_t mode,
                return dentry;
 
        if (!(debugfs_allow & DEBUGFS_ALLOW_API)) {
-               failed_creating(dentry);
+               debugfs_failed_creating(dentry);
                return ERR_PTR(-EPERM);
        }
 
@@ -443,7 +443,7 @@ static struct dentry *__debugfs_create_file(const char 
*name, umode_t mode,
        if (unlikely(!inode)) {
                pr_err("out of free dentries, can not create file '%s'\n",
                       name);
-               return failed_creating(dentry);
+               return debugfs_failed_creating(dentry);
        }
 
        inode->i_mode = mode;
@@ -458,7 +458,7 @@ static struct dentry *__debugfs_create_file(const char 
*name, umode_t mode,
 
        d_instantiate(dentry, inode);
        fsnotify_create(d_inode(dentry->d_parent), dentry);
-       return end_creating(dentry);
+       return debugfs_end_creating(dentry);
 }
 
 struct dentry *debugfs_create_file_full(const char *name, umode_t mode,
@@ -585,7 +585,7 @@ struct dentry *debugfs_create_dir(const char *name, struct 
dentry *parent)
                return dentry;
 
        if (!(debugfs_allow & DEBUGFS_ALLOW_API)) {
-               failed_creating(dentry);
+               debugfs_failed_creating(dentry);
                return ERR_PTR(-EPERM);
        }
 
@@ -593,7 +593,7 @@ struct dentry *debugfs_create_dir(const char *name, struct 
dentry *parent)
        if (unlikely(!inode)) {
                pr_err("out of free dentries, can not create directory '%s'\n",
                       name);
-               return failed_creating(dentry);
+               return debugfs_failed_creating(dentry);
        }
 
        inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO;
@@ -605,7 +605,7 @@ struct dentry *debugfs_create_dir(const char *name, struct 
dentry *parent)
        d_instantiate(dentry, inode);
        inc_nlink(d_inode(dentry->d_parent));
        fsnotify_mkdir(d_inode(dentry->d_parent), dentry);
-       return end_creating(dentry);
+       return debugfs_end_creating(dentry);
 }
 EXPORT_SYMBOL_GPL(debugfs_create_dir);
 
@@ -632,7 +632,7 @@ struct dentry *debugfs_create_automount(const char *name,
                return dentry;
 
        if (!(debugfs_allow & DEBUGFS_ALLOW_API)) {
-               failed_creating(dentry);
+               debugfs_failed_creating(dentry);
                return ERR_PTR(-EPERM);
        }
 
@@ -640,7 +640,7 @@ struct dentry *debugfs_create_automount(const char *name,
        if (unlikely(!inode)) {
                pr_err("out of free dentries, can not create automount '%s'\n",
                       name);
-               return failed_creating(dentry);
+               return debugfs_failed_creating(dentry);
        }
 
        make_empty_dir_inode(inode);
@@ -652,7 +652,7 @@ struct dentry *debugfs_create_automount(const char *name,
        d_instantiate(dentry, inode);
        inc_nlink(d_inode(dentry->d_parent));
        fsnotify_mkdir(d_inode(dentry->d_parent), dentry);
-       return end_creating(dentry);
+       return debugfs_end_creating(dentry);
 }
 EXPORT_SYMBOL(debugfs_create_automount);
 
@@ -699,13 +699,13 @@ struct dentry *debugfs_create_symlink(const char *name, 
struct dentry *parent,
                pr_err("out of free dentries, can not create symlink '%s'\n",
                       name);
                kfree(link);
-               return failed_creating(dentry);
+               return debugfs_failed_creating(dentry);
        }
        inode->i_mode = S_IFLNK | S_IRWXUGO;
        inode->i_op = &debugfs_symlink_inode_operations;
        inode->i_link = link;
        d_instantiate(dentry, inode);
-       return end_creating(dentry);
+       return debugfs_end_creating(dentry);
 }
 EXPORT_SYMBOL_GPL(debugfs_create_symlink);
 
-- 
2.50.0.107.gf914562f5916.dirty


Reply via email to