Skip to content

Commit fce6a99

Browse files
tweejKernel Patches Daemon
authored andcommitted
bpf: Fix bpf_seq_read docs for increased buffer size
Commit af65320 ("bpf: Bump iter seq size to support BTF representation of large data structures") increased the fixed buffer size from PAGE_SIZE to PAGE_SIZE << 3, but the docs for the function didn't get updated at the same time. Update them. Signed-off-by: T.J. Mercier <[email protected]> Acked-by: Yonghong Song <[email protected]>
1 parent 362a95a commit fce6a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/bpf_iter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static bool bpf_iter_support_resched(struct seq_file *seq)
8686

8787
/* bpf_seq_read, a customized and simpler version for bpf iterator.
8888
* The following are differences from seq_read():
89-
* . fixed buffer size (PAGE_SIZE)
89+
* . fixed buffer size (PAGE_SIZE << 3)
9090
* . assuming NULL ->llseek()
9191
* . stop() may call bpf program, handling potential overflow there
9292
*/

0 commit comments

Comments
 (0)