9p: Make the path walk logic more clear about when cloning is required
authorTyler Hicks <tyhicks@linux.microsoft.com>
Fri, 27 May 2022 00:00:01 +0000 (19:00 -0500)
committerDominique Martinet <dominique.martinet@atmark-techno.com>
Sat, 2 Jul 2022 09:52:21 +0000 (18:52 +0900)
commitc58c72d301d3d16ba1167d56417af39761829030
tree8117c84e87e8f6167eb1137e230dc8782f641626
parentcba83f47fc0ef52638870890e9e352afcc56dd73
9p: Make the path walk logic more clear about when cloning is required

Cloning during a path component walk is only needed when the old fid
used for the walk operation is the root fid. Make that clear by
comparing the two fids rather than using an additional variable.

Link: https://lkml.kernel.org/r/20220527000003.355812-4-tyhicks@linux.microsoft.com
Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/fid.c