]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: constify file ptr in backing_file accessor helpers
authorAmir Goldstein <amir73il@gmail.com>
Sat, 7 Jun 2025 11:53:03 +0000 (13:53 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 18 Jul 2025 09:09:29 +0000 (11:09 +0200)
commit4e301d858af17ae2ce56886296e5458c5a08219a
tree2334373c7920868f933ae24fb06cf84ade90d5ca
parentbc9241367aac08de44633fd957b2452a6da8e6d4
fs: constify file ptr in backing_file accessor helpers

Add internal helper backing_file_set_user_path() for the only
two cases that need to modify backing_file fields.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/20250607115304.2521155-2-amir73il@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/backing-file.c
fs/file_table.c
fs/internal.h
include/linux/fs.h