summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2025-09-18 14:14:03 +0300
committerCarlos Maiolino <cem@kernel.org>2025-09-22 12:57:34 +0200
commitfc0d192303bd385ac24dc52eb31ceb6ca7e027d0 (patch)
tree8eb594bcc2ed756e9f0cb4f75bf9bc12bb8b7386 /net/unix/af_unix.c
parent6ef2175fce30ccab80d519f2afcc93d8b138c16c (diff)
xfs: scrub: use kstrdup_const() for metapath scan setups
Except 'xchk_setup_metapath_rtginode()' case, 'path' argument of 'xchk_setup_metapath_scan()' is a compile-time constant. So it may be reasonable to use 'kstrdup_const()' / 'kree_const()' to manage 'path' field of 'struct xchk_metapath' in attempt to reuse .rodata instance rather than making a copy. Compile tested only. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions