@@ -403,15 +403,15 @@ static struct dentry *debugfs_start_creating(const char *name,
403403 return dentry ;
404404}
405405
406- static struct dentry * failed_creating (struct dentry * dentry )
406+ static struct dentry * debugfs_failed_creating (struct dentry * dentry )
407407{
408408 inode_unlock (d_inode (dentry -> d_parent ));
409409 dput (dentry );
410410 simple_release_fs (& debugfs_mount , & debugfs_mount_count );
411411 return ERR_PTR (- ENOMEM );
412412}
413413
414- static struct dentry * end_creating (struct dentry * dentry )
414+ static struct dentry * debugfs_end_creating (struct dentry * dentry )
415415{
416416 inode_unlock (d_inode (dentry -> d_parent ));
417417 return dentry ;
@@ -435,15 +435,15 @@ static struct dentry *__debugfs_create_file(const char *name, umode_t mode,
435435 return dentry ;
436436
437437 if (!(debugfs_allow & DEBUGFS_ALLOW_API )) {
438- failed_creating (dentry );
438+ debugfs_failed_creating (dentry );
439439 return ERR_PTR (- EPERM );
440440 }
441441
442442 inode = debugfs_get_inode (dentry -> d_sb );
443443 if (unlikely (!inode )) {
444444 pr_err ("out of free dentries, can not create file '%s'\n" ,
445445 name );
446- return failed_creating (dentry );
446+ return debugfs_failed_creating (dentry );
447447 }
448448
449449 inode -> i_mode = mode ;
@@ -458,7 +458,7 @@ static struct dentry *__debugfs_create_file(const char *name, umode_t mode,
458458
459459 d_instantiate (dentry , inode );
460460 fsnotify_create (d_inode (dentry -> d_parent ), dentry );
461- return end_creating (dentry );
461+ return debugfs_end_creating (dentry );
462462}
463463
464464struct dentry * debugfs_create_file_full (const char * name , umode_t mode ,
@@ -585,15 +585,15 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
585585 return dentry ;
586586
587587 if (!(debugfs_allow & DEBUGFS_ALLOW_API )) {
588- failed_creating (dentry );
588+ debugfs_failed_creating (dentry );
589589 return ERR_PTR (- EPERM );
590590 }
591591
592592 inode = debugfs_get_inode (dentry -> d_sb );
593593 if (unlikely (!inode )) {
594594 pr_err ("out of free dentries, can not create directory '%s'\n" ,
595595 name );
596- return failed_creating (dentry );
596+ return debugfs_failed_creating (dentry );
597597 }
598598
599599 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)
605605 d_instantiate (dentry , inode );
606606 inc_nlink (d_inode (dentry -> d_parent ));
607607 fsnotify_mkdir (d_inode (dentry -> d_parent ), dentry );
608- return end_creating (dentry );
608+ return debugfs_end_creating (dentry );
609609}
610610EXPORT_SYMBOL_GPL (debugfs_create_dir );
611611
@@ -632,15 +632,15 @@ struct dentry *debugfs_create_automount(const char *name,
632632 return dentry ;
633633
634634 if (!(debugfs_allow & DEBUGFS_ALLOW_API )) {
635- failed_creating (dentry );
635+ debugfs_failed_creating (dentry );
636636 return ERR_PTR (- EPERM );
637637 }
638638
639639 inode = debugfs_get_inode (dentry -> d_sb );
640640 if (unlikely (!inode )) {
641641 pr_err ("out of free dentries, can not create automount '%s'\n" ,
642642 name );
643- return failed_creating (dentry );
643+ return debugfs_failed_creating (dentry );
644644 }
645645
646646 make_empty_dir_inode (inode );
@@ -652,7 +652,7 @@ struct dentry *debugfs_create_automount(const char *name,
652652 d_instantiate (dentry , inode );
653653 inc_nlink (d_inode (dentry -> d_parent ));
654654 fsnotify_mkdir (d_inode (dentry -> d_parent ), dentry );
655- return end_creating (dentry );
655+ return debugfs_end_creating (dentry );
656656}
657657EXPORT_SYMBOL (debugfs_create_automount );
658658
@@ -699,13 +699,13 @@ struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
699699 pr_err ("out of free dentries, can not create symlink '%s'\n" ,
700700 name );
701701 kfree (link );
702- return failed_creating (dentry );
702+ return debugfs_failed_creating (dentry );
703703 }
704704 inode -> i_mode = S_IFLNK | S_IRWXUGO ;
705705 inode -> i_op = & debugfs_symlink_inode_operations ;
706706 inode -> i_link = link ;
707707 d_instantiate (dentry , inode );
708- return end_creating (dentry );
708+ return debugfs_end_creating (dentry );
709709}
710710EXPORT_SYMBOL_GPL (debugfs_create_symlink );
711711
0 commit comments