]> granicus.if.org Git - zfs/commit
Disable unused pathname::pn_path* (unneeded in Linux)
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 15 Jul 2019 20:57:56 +0000 (05:57 +0900)
committerTony Hutter <hutter2@llnl.gov>
Wed, 25 Sep 2019 18:27:49 +0000 (11:27 -0700)
commit0a223246e124e68bbd2ee2cd7ddcd0bbcd6fa3a5
tree334e8f139d62403ae8d103835ed77bdae92a2a83
parentcf966cb19ae63f65c518678ce57642c716808ef6
Disable unused pathname::pn_path* (unneeded in Linux)

struct pathname is originally from Solaris VFS, and it has been used
in ZoL to merely call VOP from Linux VFS interface without API change,
therefore pathname::pn_path* are unused and unneeded. Technically,
struct pathname is a wrapper for C string in ZoL.

Saves stack a bit on lookup and unlink.

(#if0'd members instead of removing since comments refer to them.)

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #9025
include/sys/pathname.h
module/zfs/pathname.c