]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Improve readability of copy_tree
authorJemmy <jemmywong512@gmail.com>
Thu, 6 Jun 2024 17:39:12 +0000 (01:39 +0800)
committerChristian Brauner <brauner@kernel.org>
Fri, 21 Jun 2024 09:41:04 +0000 (11:41 +0200)
commitdeebbd505c7bf8913451095c3ac9dcec39c7a025
treee40fd6b28b8e711cbe79b53f4b4dc9b3b07e571b
parentd4f50ea957cab6ea940cc072a142b1e964a10ee6
Improve readability of copy_tree

by employing `copy mount tree from src to dst` concept.
This involves renaming the opaque variables (e.g., p, q, r, s)
to be more descriptive, aiming to make the code easier to understand.

Changes:
mnt     -> src_root (root of the tree to copy)
r       -> src_root_child (direct child of the root being cloning)
p       -> src_parent (parent of src_mnt)
s       -> src_mnt (current mount being copying)
parent  -> dst_parent (parent of dst_child)
q       -> dst_mnt (freshly cloned mount)

Signed-off-by: Jemmy <jemmywong512@gmail.com>
Link: https://lore.kernel.org/r/20240606173912.99442-1-jemmywong512@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c