History

Merge tag 'for-5.6/block-2020-01-27' of git://git.kernel.dk/linux-block

Pull core block updates from Jens Axboe: "This may be the most quiet round we've had in years. I'm not complaining. Really not a lot to detail here, outside of spelling and documentation improvements/fixes, we have: - Allow t10-pi to be modular (Herbert) - Remove dead code in bfq (Alex) - Mark zone management requests with REQ_SYNC (Chaitanya) - BFQ division improvement (Wen) - Small series improving plugging (Pavel)" * tag 'for-5.6/block-2020-01-27' of git://git.kernel.dk/linux-block: partitions/ldm: fix spelling mistake "to" -> "too" block, bfq: improve arithmetic division in bfq_delta() block/bfq: remove unused bfq_class_rt which never used block: mark zone-mgmt bios with REQ_SYNC blk-mq: Document functions for sending request block: Allow t10-pi to be modular blk-mq: optimise blk_mq_flush_plug_list() list: introduce list_for_each_continue() blk-mq: optimise rq sort function

Linus Torvalds committed 6 years ago

Commit 48b4b4f2 parents 34dabd8 5336da311 files · +131 −57Browse files

Showing the changes to include/linux (1 of 11 files). Show all

Unified · Split

include/linux/list.h+10−0
@@ -538,6 +538,16 @@ static inline void list_splice_tail_init(struct list_head *list, · 537 unmodified lines
538538 #define list_for_each(pos, head) \
539539 for (pos = (head)->next; pos != (head); pos = pos->next)
540540
541+/**
542+ * list_for_each_continue - continue iteration over a list
543+ * @pos: the &struct list_head to use as a loop cursor.
544+ * @head: the head for your list.
545+ *
546+ * Continue to iterate over a list, continuing after the current position.
547+ */
548+#define list_for_each_continue(pos, head) \
549+ for (pos = pos->next; pos != (head); pos = pos->next)
550+
541551 /**
542552 * list_for_each_prev - iterate over a list backwards
543553 * @pos: the &struct list_head to use as a loop cursor.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t