]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ovl: refactor ovl_rename()
authorChristian Brauner <brauner@kernel.org>
Wed, 19 Nov 2025 19:48:38 +0000 (20:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 19 Nov 2025 20:58:24 +0000 (21:58 +0100)
commita1da8401987e671ac18720eb26c7ee52e79e3d4c
tree618ceb6f2cde9d3073bae72063d42dfafa0989af
parentfb9f31fe9f7b3cecf1a59427a7395c3cf1d26706
ovl: refactor ovl_rename()

Extract the code that runs under overridden credentials into a separate
ovl_rename_upper() helper function and the code that runs before/after to
ovl_rename_start/end(). Error handling is simplified.
The helpers returns errors directly instead of using goto labels.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://patch.msgid.link/20251117-work-ovl-cred-guard-v4-34-b31603935724@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/overlayfs/dir.c