summaryrefslogtreecommitdiff
path: root/block/cmdline-parser.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-05-03 20:01:27 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-05-10 22:20:02 -0400
commit071bf501379560a7631b8d75ac80165bf82735c4 (patch)
treee85e69c4f98b12fc7d5a619c34ec62278bad3879 /block/cmdline-parser.c
parent894bc8c4662ba9daceafe943a5ba0dd407da5cd3 (diff)
downloadlwn-071bf501379560a7631b8d75ac80165bf82735c4.tar.gz
lwn-071bf501379560a7631b8d75ac80165bf82735c4.zip
link_path_walk: nd->depth massage, part 1
nd->stack[0] is unused until the handling of trailing symlinks and we want to get rid of that. Having fucked that transformation up several times, I went for bloody pedantic series of provably equivalent transformations. Sorry. Step 1: keep nd->depth higher by one in link_path_walk() - increment upon entry, decrement on exits, adjust the arithmetics inside and surround the calls of functions that care about nd->depth value (nd_alloc_stack(), get_link(), put_link()) with decrement/increment pairs. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/cmdline-parser.c')
0 files changed, 0 insertions, 0 deletions