]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfcf6ec06553bafc8e5e116b7c0836072a765cfb9
tree8117c84e87e8f6167eb1137e230dc8782f641626
parent528fec7580f3056e5324175ea8bed0bedadba09a
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