Commit e31c53a
xfs: remove file_path tracepoint data
The xfile/xmbuf shmem file descriptions are no longer as detailed as
they were when online fsck was first merged, because moving to static
strings in commit 6038299 ("xfs: get rid of the
xchk_xfile_*_descr calls") removed a memory allocation and hence a
source of failure.
However this makes encoding the description in the tracepoints sort of a
waste of memory. David Laight also points out that file_path doesn't
zero the whole buffer which causes exposure of stale trace bytes, and
Steven Rostedt wonders why we're not using a dynamic array for the file
path.
I don't think this is worth fixing, so let's just rip it out.
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/linux-xfs/[email protected]/
Cc: [email protected] # v6.11
Fixes: 19ebc8f ("xfs: fix file_path handling in tracepoints")
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>1 parent 70685c2 commit e31c53a
2 files changed
Lines changed: 4 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
975 | | - | |
976 | 975 | | |
977 | 976 | | |
978 | | - | |
979 | | - | |
980 | 977 | | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | 978 | | |
986 | | - | |
987 | | - | |
988 | | - | |
| 979 | + | |
| 980 | + | |
989 | 981 | | |
990 | 982 | | |
991 | 983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5119 | 5119 | | |
5120 | 5120 | | |
5121 | 5121 | | |
5122 | | - | |
5123 | 5122 | | |
5124 | 5123 | | |
5125 | | - | |
5126 | 5124 | | |
5127 | 5125 | | |
5128 | 5126 | | |
5129 | 5127 | | |
5130 | | - | |
5131 | | - | |
5132 | | - | |
5133 | | - | |
5134 | 5128 | | |
5135 | | - | |
| 5129 | + | |
5136 | 5130 | | |
5137 | | - | |
5138 | | - | |
| 5131 | + | |
5139 | 5132 | | |
5140 | 5133 | | |
5141 | 5134 | | |
| |||
0 commit comments