summaryrefslogtreecommitdiff
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-09-04 23:16:35 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2025-09-15 21:17:07 -0400
commitdae575e669811b201114702d96f6854d5c8324b5 (patch)
tree7c92e63cb6e2d73c56aff899cbcb4bcd098f9ea5 /fs/file_table.c
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0 (diff)
backing_file_user_path(): constify struct path *
Callers never use the resulting pointer to modify the struct path it points to (nor should they). Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/file_table.c')
-rw-r--r--fs/file_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 81c72576e548..85b53e39138d 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -54,7 +54,7 @@ struct backing_file {
#define backing_file(f) container_of(f, struct backing_file, file)
-struct path *backing_file_user_path(const struct file *f)
+const struct path *backing_file_user_path(const struct file *f)
{
return &backing_file(f)->user_path;
}