Skip to content
Commit 06422964 authored by Al Viro's avatar Al Viro
Browse files

teach set_nameidata() to handle setting the root as well



That way we don't need the callers to mess with manually setting any fields
of nameidata instances.  Old set_nameidata() gets renamed (__set_nameidata()),
new becomes an inlined helper that takes a struct path pointer and deals
with setting nd->root and putting ND_ROOT_PRESET in nd->state when new
argument is non-NULL.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bcba1e7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment