|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The BLK_TC_BARRIER flag was dropped in Linux commit c09c47caedc in
August 2011. The blk plugin fails to build against recent kernel
headers. Since no flag bits were left, the new BLK_TC_FLUSH flag reused
the BLK_TC_BARRIER bit. The new BLK_TC_FUA flag was also added.
This patch updates fill_rwbs() to reflect the new
BLK_TC_FLUSH/BLK_TC_FUA flags. This allows plugin_blk.c to build
successfully on recent kernels. Most of the patch deals with detecting
old vs new kernel headers so we can build successfully on both.
(Namhyung Kim recommended using the makefile check used by perf and
other tools)
Link: http://lkml.kernel.org/r/1326108639-13904-1-git-send-email-stefanha@linux.vnet.ibm.com
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|