@@ -2312,7 +2312,7 @@ core_initcall(trace_events_synth_init_early);
static __init int trace_events_synth_init(void)
{
- struct dentry *entry = NULL;
+ struct kernfs_node *entry = NULL;
int err = 0;
err = tracing_init_dentry();
if (err)
@@ -2320,7 +2320,7 @@ static __init int trace_events_synth_init(void)
entry = tracefs_create_file("synthetic_events", TRACE_MODE_WRITE,
NULL, NULL, &synth_events_fops);
- if (!entry) {
+ if (IS_ERR(entry)) {
err = -ENODEV;
goto err;
}
@@ -2698,7 +2698,7 @@ static const struct file_operations user_status_fops = {
*/
static int create_user_tracefs(void)
{
- struct dentry *edata, *emmap;
+ struct kernfs_node *edata, *emmap;
edata = tracefs_create_file("user_events_data", TRACE_MODE_WRITE,
NULL, NULL, &user_data_fops);
@@ -54,9 +54,9 @@ static struct trace_array *hwlat_trace;
#define DEFAULT_SAMPLE_WIDTH 500000 /* 0.5s */
#define DEFAULT_LAT_THRESHOLD 10 /* 10us */
-static struct dentry *hwlat_sample_width; /* sample width us */
-static struct dentry *hwlat_sample_window; /* sample window us */
-static struct dentry *hwlat_thread_mode; /* hwlat thread mode */
+static struct kernfs_node *hwlat_sample_width; /* sample width us */
+static struct kernfs_node *hwlat_sample_window; /* sample window us */
+static struct kernfs_node *hwlat_thread_mode; /* hwlat thread mode */
enum {
MODE_NONE = 0,
@@ -769,7 +769,7 @@ static const struct file_operations thread_mode_fops = {
static int init_tracefs(void)
{
int ret;
- struct dentry *top_dir;
+ struct kernfs_node *top_dir;
ret = tracing_init_dentry();
if (ret)
Signed-off-by: Christian Brauner <brauner@kernel.org> --- kernel/trace/trace_events_synth.c | 4 ++-- kernel/trace/trace_events_user.c | 2 +- kernel/trace/trace_hwlat.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-)