diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-06-01 15:56:43 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-06-29 10:44:08 +0200 |
| commit | f565f3b06465725cae35f873d053cab14297eb73 (patch) | |
| tree | 80207502dd148c58424bd3a9bfc3d107c1cab038 /tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git | |
| parent | c3f4513c7828f9e0b74d7a25bb1995f96d2d8a57 (diff) | |
btrfs: use scoped_with_init_fs() for update_dev_time()
update_dev_time() can be called from both kthread and process context.
Use scoped_with_init_fs() to temporarily override current->fs for
the kern_path() call when running in kthread context so the path
lookup happens in init's filesystem context.
update_dev_time() ← btrfs_scratch_superblocks() ←
btrfs_dev_replace_finishing() ← btrfs_dev_replace_kthread()
← kthread (kthread_run)
Also called from ioctl (user process).
Link: https://patch.msgid.link/20260601-work-kthread-nullfs-v4-10-77ee053060e0@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
