[tip: timers/core] time/debug: Remove dentry pointer for debugfs

2021-03-18 Thread tip-bot2 for Greg Kroah-Hartman
The following commit has been merged into the timers/core branch of tip:

Commit-ID: 44511ab344c755d1f216bf421e92fbc2777e87fe
Gitweb:
https://git.kernel.org/tip/44511ab344c755d1f216bf421e92fbc2777e87fe
Author:Greg Kroah-Hartman 
AuthorDate:Tue, 16 Feb 2021 16:50:20 +01:00
Committer: Thomas Gleixner 
CommitterDate: Thu, 18 Mar 2021 11:20:26 +01:00

time/debug: Remove dentry pointer for debugfs

There is no need to keep the dentry pointer around for the created
debugfs file, as it is only needed when removing it from the system.
When it is to be removed, ask debugfs itself for the pointer, to save on
storage and make things a bit simpler.

Signed-off-by: Greg Kroah-Hartman 
Signed-off-by: Thomas Gleixner 
Link: 
https://lore.kernel.org/r/20210216155020.1012407-1-gre...@linuxfoundation.org

---
 kernel/time/test_udelay.c | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/kernel/time/test_udelay.c b/kernel/time/test_udelay.c
index 77c6300..13b11eb 100644
--- a/kernel/time/test_udelay.c
+++ b/kernel/time/test_udelay.c
@@ -21,7 +21,6 @@
 #define DEBUGFS_FILENAME "udelay_test"
 
 static DEFINE_MUTEX(udelay_test_lock);
-static struct dentry *udelay_test_debugfs_file;
 static int udelay_test_usecs;
 static int udelay_test_iterations = DEFAULT_ITERATIONS;
 
@@ -138,8 +137,8 @@ static const struct file_operations udelay_test_debugfs_ops 
= {
 static int __init udelay_test_init(void)
 {
mutex_lock(_test_lock);
-   udelay_test_debugfs_file = debugfs_create_file(DEBUGFS_FILENAME,
-   S_IRUSR, NULL, NULL, _test_debugfs_ops);
+   debugfs_create_file(DEBUGFS_FILENAME, S_IRUSR, NULL, NULL,
+   _test_debugfs_ops);
mutex_unlock(_test_lock);
 
return 0;
@@ -150,7 +149,7 @@ module_init(udelay_test_init);
 static void __exit udelay_test_exit(void)
 {
mutex_lock(_test_lock);
-   debugfs_remove(udelay_test_debugfs_file);
+   debugfs_remove(debugfs_lookup(DEBUGFS_FILENAME, NULL));
mutex_unlock(_test_lock);
 }
 


[tip: perf/urgent] Linux 5.9.1

2020-10-19 Thread tip-bot2 for Greg Kroah-Hartman
The following commit has been merged into the perf/urgent branch of tip:

Commit-ID: 213f323329f1567e09f85ddb54cfb80769340b50
Gitweb:
https://git.kernel.org/tip/213f323329f1567e09f85ddb54cfb80769340b50
Author:Greg Kroah-Hartman 
AuthorDate:Sat, 17 Oct 2020 08:31:22 +02:00
Committer: Greg Kroah-Hartman 
CommitterDate: Sat, 17 Oct 2020 08:31:22 +02:00

Linux 5.9.1

Tested-by: Jeffrin Jose T 
Tested-by: Jon Hunter 
Tested-by: Linux Kernel Functional Testing 
Tested-by: Guenter Roeck 
Link: https://lore.kernel.org/r/20201016090437.170032...@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman 
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 51540b2..d600b38 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 9
-SUBLEVEL = 0
+SUBLEVEL = 1
 EXTRAVERSION =
 NAME = Kleptomaniac Octopus