]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
net/ceph: update outdated comment
authorkexinsun <kexinsun@smail.nju.edu.cn>
Mon, 23 Feb 2026 13:15:07 +0000 (21:15 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Mar 2026 10:08:34 +0000 (11:08 +0100)
The function try_write() was renamed to ceph_con_v1_try_write()
in commit 566050e17e53 ("libceph: separate msgr1 protocol
implementation") and subsequently moved to net/ceph/messenger_v1.c
in commit 2f713615ddd9 ("libceph: move msgr1 protocol implementation
to its own file").  Update the comment in ceph_sock_write_space()
accordingly.

Signed-off-by: kexinsun <kexinsun@smail.nju.edu.cn>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
net/ceph/messenger.c

index 108adb5837444b775dfa3c006ea1b0ea26cfb723..0c2c01b31ef42f9da55f15e1577081f08234dfa4 100644 (file)
@@ -368,8 +368,8 @@ static void ceph_sock_write_space(struct sock *sk)
        /* only queue to workqueue if there is data we want to write,
         * and there is sufficient space in the socket buffer to accept
         * more data.  clear SOCK_NOSPACE so that ceph_sock_write_space()
-        * doesn't get called again until try_write() fills the socket
-        * buffer. See net/ipv4/tcp_input.c:tcp_check_space()
+        * doesn't get called again until ceph_con_v1_try_write() fills
+        * the socket buffer. See net/ipv4/tcp_input.c:tcp_check_space()
         * and net/core/stream.c:sk_stream_write_space().
         */
        if (ceph_con_flag_test(con, CEPH_CON_F_WRITE_PENDING)) {