signalfd: drop an obsolete comment
authorFedor Pchelkin <pchelkin@ispras.ru>
Mon, 20 May 2024 09:08:19 +0000 (12:08 +0300)
committerChristian Brauner <brauner@kernel.org>
Fri, 24 May 2024 11:34:07 +0000 (13:34 +0200)
Commit fbe38120eb1d ("signalfd: convert to ->read_iter()") removed the
call to anon_inode_getfd() by splitting fd setup into two parts. Drop the
comment referencing the internal details of that function.

Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Link: https://lore.kernel.org/r/20240520090819.76342-2-pchelkin@ispras.ru
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/signalfd.c

index 65fe5eed0be4cd30f239d0e8f9451a090779495b..ec7b2da2477a41c3b7ac04bbf85835febafd08f1 100644 (file)
@@ -286,10 +286,6 @@ static int do_signalfd4(int ufd, sigset_t *mask, int flags)
                }
                file->f_mode |= FMODE_NOWAIT;
 
-               /*
-                * When we call this, the initialization must be complete, since
-                * anon_inode_getfd() will install the fd.
-                */
                fd_install(ufd, file);
        } else {
                struct fd f = fdget(ufd);