From patchwork Thu Jul 5 10:08:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 1158991 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 675C4DFB7C for ; Thu, 5 Jul 2012 10:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932148Ab2GEKIk (ORCPT ); Thu, 5 Jul 2012 06:08:40 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:35246 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755426Ab2GEKIk (ORCPT ); Thu, 5 Jul 2012 06:08:40 -0400 Received: by ghrr11 with SMTP id r11so7186878ghr.19 for ; Thu, 05 Jul 2012 03:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=Muwu9QxEeEVnBD8swvCf79pLDo8u6OYKiCYizJvRHJY=; b=i1tPH82xfkjXHD3JQgaB2aneA7mKiJzNrNGLR4JjXNxK+RqFkRQer+Qq/pTbQj+/Mp ZcoBpgM8Gwcwz2P4LkzFH/hthlj4Lakb5gFVFN7l4CLbO2UBUR6KmovcHPNYgmtJ5IQ7 I2eOAtuIaYYrFbT143ltuxYkuNvymvEjCUoY7wDu6eJGIVP+VGi7lgUVYX9mMhBnzu4B xirxajzQhvdCwhyY/KYkJwrsAzl0tkntyHEDKJ2AX4EvVhfAPQpgnNQNl/SGsG6xy7tz L7dTWOeeWfpj5xRHuL6C3pLoILx8lg7bV0bBE/ZxAP6SbXGwHJ7j7ax4a6V/DZc7JJrL J8hA== Received: by 10.66.72.163 with SMTP id e3mr14897507pav.42.1341482919073; Thu, 05 Jul 2012 03:08:39 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-189-113.ip51.fastwebnet.it. [93.34.189.113]) by mx.google.com with ESMTPS id rg9sm19487203pbc.67.2012.07.05.03.08.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 03:08:37 -0700 (PDT) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org Cc: levinsasha928@gmail.com, Rusty Russell , "Michael S. Tsirkin" Subject: [PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH Date: Thu, 5 Jul 2012 12:08:22 +0200 Message-Id: <1341482902-13318-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.10.2 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The old name is part of the userspace API, add it back for compatibility. Reported-by: Sasha Levin Signed-off-by: Paolo Bonzini --- 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 {