Skip to content

Commit

Permalink
tools/mdflush: include blkdev.h instead of genhd.h
Browse files Browse the repository at this point in the history
In recent kernels, i.e. since commit 322cbb50de71 ("block: remove
genhd.h"), genhd.h header has been removed and its content moved to
blkdev.h. Since genhd.h has been included in blkdev.h since forever,
including blkdev instead of genhd in the mdflush tool works for both
older and newer kernel.
  • Loading branch information
jeromemarchand committed Aug 1, 2022
1 parent 1fd6e19 commit aacec93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mdflush.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
bpf_text="""
#include <uapi/linux/ptrace.h>
#include <linux/sched.h>
#include <linux/genhd.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
struct data_t {
Expand Down

0 comments on commit aacec93

Please sign in to comment.