History

blktrace: Use the new blk_opf_t type

Improve static type checking by using the new blk_opf_t type for a function argument that represents a combination of a request operation and request flags. Rename that argument from 'op' into 'opf' to make its role more clear.

Bart Van Assche committed 4 years ago

Commit 919dbca1 parent 22c80aa2 files · +27 −27Browse files

Showing the changes to include/linux/blktrace_api.h (1 of 2 files). Show all

Unified · Split

include/linux/blktrace_api.h+2−1
@@ -7,6 +7,7 @@ · 6 unmodified lines
77 #include <linux/compat.h>
88 #include <uapi/linux/blktrace_api.h>
99 #include <linux/list.h>
10+#include <linux/blk_types.h>
1011
1112 #if defined(CONFIG_BLK_DEV_IO_TRACE)
1213
@@ -105,7 +106,7 @@ struct compat_blk_user_trace_setup { · 92 unmodified lines
105106
106107 #endif
107108
108−void blk_fill_rwbs(char *rwbs, unsigned int op);
109+void blk_fill_rwbs(char *rwbs, blk_opf_t opf);
109110
110111 static inline sector_t blk_rq_trace_sector(struct request *rq)
111112 {

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