From patchwork Thu Dec 10 09:36:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 40790 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id E52FAB6EFE for ; Thu, 10 Dec 2009 20:36:15 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758659AbZLJJgG (ORCPT ); Thu, 10 Dec 2009 04:36:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758697AbZLJJgG (ORCPT ); Thu, 10 Dec 2009 04:36:06 -0500 Received: from verein.lst.de ([213.95.11.210]:60115 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758659AbZLJJgF (ORCPT ); Thu, 10 Dec 2009 04:36:05 -0500 Received: from verein.lst.de (localhost [127.0.0.1]) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id nBA9a5cH031036 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 10 Dec 2009 10:36:06 +0100 Received: (from hch@localhost) by verein.lst.de (8.12.3/8.12.3/Debian-7.2) id nBA9a1iN031035; Thu, 10 Dec 2009 10:36:01 +0100 Date: Thu, 10 Dec 2009 10:36:01 +0100 From: Christoph Hellwig To: jgarzik@pobox.com Cc: linux-ide@vger.kernel.org Subject: libata: use the WRITE_SAME_16 define Message-ID: <20091210093601.GA30917@lst.de> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Spam-Score: -0.001 () BAYES_44 X-Scanned-By: MIMEDefang 2.39 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Now that the scsi tree has hit mainline we can use the newly added WRITE_SAME_16 define. Signed-off-by: Christoph Hellwig --- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/ata/libata-scsi.c =================================================================== --- linux-2.6.orig/drivers/ata/libata-scsi.c 2009-12-10 10:21:05.735254334 +0100 +++ linux-2.6/drivers/ata/libata-scsi.c 2009-12-10 10:21:29.562255983 +0100 @@ -3022,7 +3022,7 @@ static inline ata_xlat_func_t ata_get_xl case WRITE_16: return ata_scsi_rw_xlat; - case 0x93 /*WRITE_SAME_16*/: + case WRITE_SAME_16: return ata_scsi_write_same_xlat; case SYNCHRONIZE_CACHE: