Skip to content

Commit f850218

Browse files
Jonathan Corbetopsiff
authored andcommitted
seq_buf: fix a misleading comment
mainline inclsion from mainline-v6.7-rc1 category: docs The comment for seq_buf_has_overflowed() says that an overflow condition is marked by len == size, but that's not what the code is testing. Make the comment match reality. Link: https://lkml.kernel.org/r/87pm19kp0m.fsf@meer.lwn.net Fixes: 8cd709a ("tracing: Have seq_buf use full buffer") Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> (cherry picked from commit 845e31e) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent bcfb4e2 commit f850218

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/seq_buf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ seq_buf_init(struct seq_buf *s, char *buf, unsigned int size)
4444

4545
/*
4646
* seq_buf have a buffer that might overflow. When this happens
47-
* the len and size are set to be equal.
47+
* len is set to be greater than size.
4848
*/
4949
static inline bool
5050
seq_buf_has_overflowed(struct seq_buf *s)

0 commit comments

Comments
 (0)