Commit ba73713
committed
tracing: Clean up use of trace_create_maxlat_file()
In trace.c, the function trace_create_maxlat_file() is defined behind the
#ifdef CONFIG_TRACER_MAX_TRACE block. The #else part defines it as:
#define trace_create_maxlat_file(tr, d_tracer) \
trace_create_file("tracing_max_latency", TRACE_MODE_WRITE, \
d_tracer, tr, &tracing_max_lat_fops)
But the one place that it it used has:
#ifdef CONFIG_TRACER_MAX_TRACE
trace_create_maxlat_file(tr, d_tracer);
#endif
Which is pointless and also wrong!
It only gets created when both CONFIG_TRACE_MAX_TRACE and CONFIG_FS_NOTIFY
is defined, but the file itself should not be dependent on
CONFIG_FS_NOTIFY. Always create that file when TRACE_MAX_TRACE is defined
regardless if FS_NOTIFY is or is not.
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Link: https://patch.msgid.link/20260207191101.0e014abd@robin
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 326669f commit ba73713
1 file changed
Lines changed: 16 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1912 | 1912 | | |
1913 | 1913 | | |
1914 | 1914 | | |
1915 | | - | |
1916 | | - | |
1917 | 1915 | | |
1918 | | - | |
1919 | 1916 | | |
1920 | 1917 | | |
1921 | 1918 | | |
| |||
1932 | 1929 | | |
1933 | 1930 | | |
1934 | 1931 | | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
1943 | | - | |
1944 | | - | |
1945 | | - | |
1946 | 1932 | | |
1947 | 1933 | | |
1948 | 1934 | | |
| |||
1967 | 1953 | | |
1968 | 1954 | | |
1969 | 1955 | | |
| 1956 | + | |
1970 | 1957 | | |
1971 | | - | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
| 1958 | + | |
1976 | 1959 | | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
1977 | 1966 | | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
1978 | 1972 | | |
1979 | 1973 | | |
1980 | 1974 | | |
| |||
2109 | 2103 | | |
2110 | 2104 | | |
2111 | 2105 | | |
2112 | | - | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
2113 | 2109 | | |
2114 | 2110 | | |
2115 | 2111 | | |
| |||
10664 | 10660 | | |
10665 | 10661 | | |
10666 | 10662 | | |
10667 | | - | |
10668 | 10663 | | |
10669 | | - | |
10670 | 10664 | | |
10671 | 10665 | | |
10672 | 10666 | | |
| |||
0 commit comments