summaryrefslogtreecommitdiff
path: root/include/linux/fs_struct.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-06-01 15:56:37 +0200
committerChristian Brauner <brauner@kernel.org>2026-06-29 10:43:45 +0200
commit1d4ee94a51bdb98610bf7283e6297b133f8c1025 (patch)
tree43a7b9161690822b1115f48db4860a1bde7b9094 /include/linux/fs_struct.h
parent67c54d1d730a8b7a43f2560dcea9b7dc95fba1cd (diff)
downloadlinux-next-1d4ee94a51bdb98610bf7283e6297b133f8c1025.tar.gz
linux-next-1d4ee94a51bdb98610bf7283e6297b133f8c1025.zip
fs: add real_fs to track task's actual fs_struct
Add a real_fs field to task_struct that always mirrors the fs field. This lays the groundwork for distinguishing between a task's permanent fs_struct and one that is temporarily overridden via scoped_with_init_fs(). When a kthread temporarily overrides current->fs for path lookup, we need to know the original fs_struct for operations like exit_fs() and unshare_fs_struct() that must operate on the real, permanent fs. For now real_fs is always equal to fs. It is maintained alongside fs in all the relevant paths: exit_fs(), unshare_fs_struct(), switch_fs_struct(), and copy_fs(). Link: https://patch.msgid.link/20260601-work-kthread-nullfs-v4-4-77ee053060e0@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/fs_struct.h')
0 files changed, 0 insertions, 0 deletions