]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs: retire stale comment in fget_task_next()
authorMateusz Guzik <mjguzik@gmail.com>
Fri, 22 May 2026 14:21:52 +0000 (16:21 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 28 May 2026 12:27:00 +0000 (14:27 +0200)
The routine originally showed up in e9a53aeb5e0a838f ("file: Implement
task_lookup_next_fd_rcu"), afterwards it got renamed and started
entering RCU on its own in 8fd3395ec9051a52 ("get rid of
...lookup...fdget_rcu() family").

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260522142152.1515572-1-mjguzik@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/file.c

index e5c75b22e0c7c3e5fcee007b4c200b5019e3745d..628ca07dc4b179db98f0ac6e9f6d60dd7f3c5d3b 100644 (file)
--- a/fs/file.c
+++ b/fs/file.c
@@ -1133,7 +1133,6 @@ struct file *fget_task(struct task_struct *task, unsigned int fd)
 
 struct file *fget_task_next(struct task_struct *task, unsigned int *ret_fd)
 {
-       /* Must be called with rcu_read_lock held */
        struct files_struct *files;
        unsigned int fd = *ret_fd;
        struct file *file = NULL;