projects/linux·commit cfced12f

include/linux/pipe_fs_i: Add htmldoc annotation for "head_tail" member

cfced12f · K Prateek Nayak <[email protected]> · 2025-03-05 11:23:01 +00:00

Add htmldoc annotation for the newly introduced "head_tail" member
describing it to be a union of the pipe_inode_info's @head and @tail
members.

Reported-by: Stephen Rothwell <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Fixes: 3d252160b818 ("fs/pipe: Read pipe->{head,tail} atomically outside pipe->mutex")
Signed-off-by: K Prateek Nayak <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
cfced12f5100e50d56bc587299393fd33c1169a9
Parents
c27c66af

Changes

1 files changed · +1 −0

FileStatusAddDelContent
include/linux/pipe_fs_i.hmodified+1−0View file

include/linux/pipe_fs_i.h

View file
diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h
index 1f013ed..05ccbc5 100644
--- a/include/linux/pipe_fs_i.h
+++ b/include/linux/pipe_fs_i.h
@@ -65,6 +65,7 @@ union pipe_index {
* @wr_wait: writer wait point in case of full pipe
* @head: The point of buffer production
* @tail: The point of buffer consumption
+ * @head_tail: unsigned long union of @head and @tail
* @note_loss: The next read() should insert a data-lost message
* @max_usage: The maximum number of slots that may be used in the ring
* @ring_size: total number of buffers (should be a power of 2)