lkml.org 
[lkml]   [2012]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH
Date
The old name is part of the userspace API, add it back for compatibility.

Reported-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/linux/virtio_blk.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h
index 18a1027..83a3116 100644
--- a/include/linux/virtio_blk.h
+++ b/include/linux/virtio_blk.h
@@ -41,6 +41,9 @@
#define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */
#define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */

+/* Backwards-compatibility #defines for renamed features. */
+#define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE
+
#define VIRTIO_BLK_ID_BYTES 20 /* ID string length */

struct virtio_blk_config {
--
1.7.1


\
 
 \ /
  Last update: 2012-07-05 12:41    [W:0.046 / U:47.216 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site