debugfs: debugfs_use_start/finish do not exist anymore

This change “debugfs: debugfs_use_start/finish do not exist anymore” in Linux kernel is authored by Sergey Senozhatsky <sergey.senozhatsky [at]> on Sun Dec 30 12:46:52 2018 +0900.

debugfs: debugfs_use_start/finish do not exist anymore

debugfs_use_file_start() and debugfs_use_file_finish() do not exist
since commit c9afbec27089 ("debugfs: purge obsolete SRCU based removal
protection"); tweak debugfs_create_file_unsafe() comment.

Signed-off-by: Sergey Senozhatsky <>
Reviewed-by: Rafael J. Wysocki <>
Signed-off-by: Greg Kroah-Hartman <>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit 0eeb273.

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 fs/debugfs/inode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 13b0135..4354069 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -422,8 +422,8 @@ struct dentry *debugfs_create_file(const char *name, umode_t mode,
  * debugfs core.
  * It is your responsibility to protect your struct file_operation
- * methods against file removals by means of debugfs_use_file_start()
- * and debugfs_use_file_finish(). ->open() is still protected by
+ * methods against file removals by means of debugfs_file_get()
+ * and debugfs_file_put(). ->open() is still protected by
  * debugfs though.
  * Any struct file_operations defined by means of

The commit for this change in Linux stable tree is 0eeb273 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *