History

block: reorder the REQ_ flags

Keep the op-specific flag last so that they are clearly separate from the generic flags. Various recent commits just kept adding new flags at the end.

Christoph Hellwig committed 4 years ago

Commit 5ce77291 parent 2a371f71 file · +8 −7Browse files

Unified · Split

include/linux/blk_types.h+8−7
@@ -408,16 +408,17 @@ enum req_flag_bits { · 407 unmodified lines
408408 * work item to avoid such priority inversions.
409409 */
410410 __REQ_CGROUP_PUNT,
411−
412− /* command specific flags for REQ_OP_WRITE_ZEROES: */
413− __REQ_NOUNMAP, /* do not free blocks when zeroing */
414−
415411 __REQ_POLLED, /* caller polls for completion using bio_poll */
416412 __REQ_ALLOC_CACHE, /* allocate IO from cache if available */
413+ __REQ_SWAP, /* swap I/O */
414+ __REQ_DRV, /* for driver use */
415+
416+ /*
417+ * Command specific flags, keep last:
418+ */
419+ /* for REQ_OP_WRITE_ZEROES: */
420+ __REQ_NOUNMAP, /* do not free blocks when zeroing */
417421
418− /* for driver use */
419− __REQ_DRV,
420− __REQ_SWAP, /* swapping request. */
421422 __REQ_NR_BITS, /* stops here */
422423 };
423424

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