public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] file: remove outdated comment after close_fd()
@ 2024-08-03  2:54 Joel Savitz
  2024-08-05 13:21 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Savitz @ 2024-08-03  2:54 UTC (permalink / raw)
  To: linux-kernel
  Cc: Joel Savitz, Alexander Viro, Christian Brauner, Jan Kara,
	linux-fsdevel

Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: linux-fsdevel@vger.kernel.org

The comment on EXPORT_SYMBOL(close_fd) was added in commit 2ca2a09d6215
("fs: add ksys_close() wrapper; remove in-kernel calls to sys_close()"),
before commit 8760c909f54a ("file: Rename __close_fd to close_fd and remove
the files parameter") gave the function its current name, however commit
1572bfdf21d4 ("file: Replace ksys_close with close_fd") removes the
referenced caller entirely, obsoleting this comment.

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
---
 fs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/file.c b/fs/file.c
index a3b72aa64f11..cfc58b782bc4 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -676,7 +676,7 @@ int close_fd(unsigned fd)
 
 	return filp_close(file, files);
 }
-EXPORT_SYMBOL(close_fd); /* for ksys_close() */
+EXPORT_SYMBOL(close_fd);
 
 /**
  * last_fd - return last valid index into fd table
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-05 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03  2:54 [PATCH] file: remove outdated comment after close_fd() Joel Savitz
2024-08-05 13:21 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox