xfs: fix file_path handling in tracepoints
authorDarrick J. Wong <djwong@kernel.org>
Thu, 11 Jul 2024 05:43:53 +0000 (22:43 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 29 Jul 2024 03:57:23 +0000 (09:27 +0530)
commit19ebc8f84ea12e18dd6c8d3ecaf87bcf4666eee1
treee804491d554c70fde265f5b7525010830cd70d86
parent39c1ddb064fd38e28571c853f067b134d17cffb2
xfs: fix file_path handling in tracepoints

Since file_path() takes the output buffer as one of its arguments, we
might as well have it format directly into the tracepoint's char array
instead of wasting stack space.

Fixes: 3934e8ebb7cc6 ("xfs: create a big array data structure")
Fixes: 5076a6040ca16 ("xfs: support in-memory buffer cache targets")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202403290419.HPcyvqZu-lkp@intel.com/
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/trace.h
fs/xfs/xfs_trace.h