diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-19 21:21:24 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-15 21:26:05 -0400 |
commit | ef307f89bfb662109a25acdde5b5837fe84a3a64 (patch) | |
tree | 6c05cbcfad15d6c9af70fadd89a15cf33bfc9565 /scripts/lib/abi/helpers.py | |
parent | 842e12352c3074b8af1bc95cc2bb1e9fb47f4334 (diff) |
do_add_mount(): switch to passing pinned_mountpoint instead of mountpoint + path
Both callers pass it a mountpoint reference picked from pinned_mountpoint
and path it corresponds to.
First of all, path->dentry is equal to mp.mp->m_dentry. Furthermore, path->mnt
is &mp.parent->mnt, making struct path contents redundant.
Pass it the address of that pinned_mountpoint instead; what's more, if we
teach it to treat ERR_PTR(error) in ->parent as "bail out with that error"
we can simplify the callers even more - do_add_mount() will do the right
thing even when called after lock_mount() failure.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/lib/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions