erofs: use credential guards
authorChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 11:26:57 +0000 (12:26 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 11:36:40 +0000 (12:36 +0100)
commit5e88d1aadcd20a8e2cf317839cac0c94006cee64
tree54e17195f25fdcf7e0bca1afe7dfcb507d867d07
parentff2044cd277d8d2d6d6ea609d5a10fcbe68a23f9
erofs: use credential guards

Use credential guards for scoped credential override with automatic
restoration on scope exit.

Link: https://patch.msgid.link/20251103-work-creds-guards-simple-v1-9-a3e156839e7f@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/erofs/fileio.c