You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
949 B
31 lines
949 B
2 years ago
|
From 93a464e2ef05b7ef78b5679e366b89fcddf6a575 Mon Sep 17 00:00:00 2001
|
||
|
From: Jerome Marchand <jmarchan@redhat.com>
|
||
|
Date: Mon, 1 Aug 2022 11:45:41 +0200
|
||
|
Subject: [PATCH] tools/mdflush: include blkdev.h instead of genhd.h
|
||
|
|
||
|
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.
|
||
|
---
|
||
|
tools/mdflush.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/tools/mdflush.py b/tools/mdflush.py
|
||
|
index 3581d1bf..6741d563 100755
|
||
|
--- a/tools/mdflush.py
|
||
|
+++ b/tools/mdflush.py
|
||
|
@@ -19,7 +19,7 @@ from time import strftime
|
||
|
b = 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 {
|
||
|
--
|
||
|
2.37.1
|
||
|
|