From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CE8EC433B4 for ; Thu, 20 May 2021 05:56:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D377D61163 for ; Thu, 20 May 2021 05:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230008AbhETF5f (ORCPT ); Thu, 20 May 2021 01:57:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:48646 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhETF5f (ORCPT ); Thu, 20 May 2021 01:57:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CEDDBAF03; Thu, 20 May 2021 05:56:13 +0000 (UTC) Subject: Re: [PATCH v2 07/11] dm: Introduce dm_report_zones() To: Damien Le Moal , dm-devel@redhat.com, Mike Snitzer , linux-block@vger.kernel.org, Jens Axboe References: <20210520042228.974083-1-damien.lemoal@wdc.com> <20210520042228.974083-8-damien.lemoal@wdc.com> From: Hannes Reinecke Message-ID: Date: Thu, 20 May 2021 07:56:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210520042228.974083-8-damien.lemoal@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 5/20/21 6:22 AM, Damien Le Moal wrote: > To simplify the implementation of the report_zones operation of a zoned > target, introduce the function dm_report_zones() to set a target > mapping start sector in struct dm_report_zones_args and call > blkdev_report_zones(). This new function is exported and the report > zones callback function dm_report_zones_cb() is not. > > dm-linear, dm-flakey and dm-crypt are modified to use dm_report_zones(). > > Signed-off-by: Damien Le Moal > Reviewed-by: Johannes Thumshirn > --- > drivers/md/dm-crypt.c | 7 +++---- > drivers/md/dm-flakey.c | 7 +++---- > drivers/md/dm-linear.c | 7 +++---- > drivers/md/dm-zone.c | 23 ++++++++++++++++++++--- > include/linux/device-mapper.h | 3 ++- > 5 files changed, 31 insertions(+), 16 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70107C433B4 for ; Thu, 20 May 2021 06:05:15 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 08FAC610A1 for ; Thu, 20 May 2021 06:05:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 08FAC610A1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=dm-devel-bounces@redhat.com Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-424-G9y2tKB5MbCDfnf-5PUw1Q-1; Thu, 20 May 2021 02:05:10 -0400 X-MC-Unique: G9y2tKB5MbCDfnf-5PUw1Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B7BED801817; Thu, 20 May 2021 06:05:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 917DD617E; Thu, 20 May 2021 06:05:06 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 31D89180B464; Thu, 20 May 2021 06:05:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 14K5uSW4015251 for ; Thu, 20 May 2021 01:56:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id A62DE20287D9; Thu, 20 May 2021 05:56:28 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A1D8720287D8 for ; Thu, 20 May 2021 05:56:21 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B7D6C1857F1E for ; Thu, 20 May 2021 05:56:21 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-3-bLmJ6uHVNTWZjFajroDqjg-1; Thu, 20 May 2021 01:56:15 -0400 X-MC-Unique: bLmJ6uHVNTWZjFajroDqjg-1 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CEDDBAF03; Thu, 20 May 2021 05:56:13 +0000 (UTC) To: Damien Le Moal , dm-devel@redhat.com, Mike Snitzer , linux-block@vger.kernel.org, Jens Axboe References: <20210520042228.974083-1-damien.lemoal@wdc.com> <20210520042228.974083-8-damien.lemoal@wdc.com> From: Hannes Reinecke Message-ID: Date: Thu, 20 May 2021 07:56:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210520042228.974083-8-damien.lemoal@wdc.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 14K5uSW4015251 X-loop: dm-devel@redhat.com Subject: Re: [dm-devel] [PATCH v2 07/11] dm: Introduce dm_report_zones() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" T24gNS8yMC8yMSA2OjIyIEFNLCBEYW1pZW4gTGUgTW9hbCB3cm90ZToKPiBUbyBzaW1wbGlmeSB0 aGUgaW1wbGVtZW50YXRpb24gb2YgdGhlIHJlcG9ydF96b25lcyBvcGVyYXRpb24gb2YgYSB6b25l ZAo+IHRhcmdldCwgaW50cm9kdWNlIHRoZSBmdW5jdGlvbiBkbV9yZXBvcnRfem9uZXMoKSB0byBz ZXQgYSB0YXJnZXQKPiBtYXBwaW5nIHN0YXJ0IHNlY3RvciBpbiBzdHJ1Y3QgZG1fcmVwb3J0X3pv bmVzX2FyZ3MgYW5kIGNhbGwKPiBibGtkZXZfcmVwb3J0X3pvbmVzKCkuIFRoaXMgbmV3IGZ1bmN0 aW9uIGlzIGV4cG9ydGVkIGFuZCB0aGUgcmVwb3J0Cj4gem9uZXMgY2FsbGJhY2sgZnVuY3Rpb24g ZG1fcmVwb3J0X3pvbmVzX2NiKCkgaXMgbm90Lgo+IAo+IGRtLWxpbmVhciwgZG0tZmxha2V5IGFu ZCBkbS1jcnlwdCBhcmUgbW9kaWZpZWQgdG8gdXNlIGRtX3JlcG9ydF96b25lcygpLgo+IAo+IFNp Z25lZC1vZmYtYnk6IERhbWllbiBMZSBNb2FsIDxkYW1pZW4ubG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