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=-5.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 195C9FC6195 for ; Fri, 8 Nov 2019 15:16:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2BA5206C3 for ; Fri, 8 Nov 2019 15:16:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Jf4bIEZB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbfKHPQ1 (ORCPT ); Fri, 8 Nov 2019 10:16:27 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:37358 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727221AbfKHPQ0 (ORCPT ); Fri, 8 Nov 2019 10:16:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573226185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sdJq9GCWEigvvKAEhdiMe0zWBDjEkdIA0zDjk+u6lhw=; b=Jf4bIEZB8V71oqtqwtfWFT4J3GYMwgH7QXdbjWMLojMIdV2ZINRwXVNVaiVuStGgUfUi83 /iW7eJS6S9jS/ymkMXiOsJTXGZiA3KZof9HRl9DPCCPRxpg4Q3v7X4aK4Q0N83H5lffaLz qwNIeExYBSWPJ9kvInRoHi1gCYHZqWU= 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-289-fhtsWwYyNlO4PtBrYovQIw-1; Fri, 08 Nov 2019 10:16:22 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DC70B180496F; Fri, 8 Nov 2019 15:16:20 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B27485DA7F; Fri, 8 Nov 2019 15:16:17 +0000 (UTC) Date: Fri, 8 Nov 2019 10:16:16 -0500 From: Mike Snitzer To: Damien Le Moal Cc: linux-block@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , dm-devel@redhat.com, linux-f2fs-devel@lists.sourceforge.net, Jaegeuk Kim , Chao Yu Subject: Re: [PATCH 9/9] block: rework zone reporting Message-ID: <20191108151616.GA8047@redhat.com> References: <20191108015702.233102-1-damien.lemoal@wdc.com> <20191108015702.233102-10-damien.lemoal@wdc.com> MIME-Version: 1.0 In-Reply-To: <20191108015702.233102-10-damien.lemoal@wdc.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: fhtsWwYyNlO4PtBrYovQIw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Thu, Nov 07 2019 at 8:57pm -0500, Damien Le Moal wrote: > From: Christoph Hellwig >=20 > Avoid the need to allocate a potentially large array of struct blk_zone > in the block layer by switching the ->report_zones method interface to > a callback model. Now the caller simply supplies a callback that is > executed on each reported zone, and private data for it. >=20 > Signed-off-by: Christoph Hellwig > Signed-off-by: Shin'ichiro Kawasaki > Signed-off-by: Damien Le Moal Reviewed-by: Mike Snitzer 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=-5.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,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 E2C92C5DF60 for ; Fri, 8 Nov 2019 15:16:37 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 AD5B6222CD; Fri, 8 Nov 2019 15:16:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="PE9TQSy1"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="b+2AwuSE"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="i8KTcFR1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD5B6222CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1iT604-0007uG-Tz; Fri, 08 Nov 2019 15:16:36 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iT603-0007u5-SK for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 15:16:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sdJq9GCWEigvvKAEhdiMe0zWBDjEkdIA0zDjk+u6lhw=; b=PE9TQSy1dbLyUMhQwHl/oKgDzN UkQxQyJrJtounZqvv5jiEPegtWhkGeMGMzXazGKYFIUP5HQEO+gAHkUDG+CKKqKetKj8TUnAPcbyY WfOJQQcQkUtoMJeXteWYLt+ymDaxrpsVbd927AxJ0ZZ+XAjoKP3FowL8KadUh/pJrK4Q=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=sdJq9GCWEigvvKAEhdiMe0zWBDjEkdIA0zDjk+u6lhw=; b=b+2AwuSEXyGfl/1+Az5saXWwIf KktBL7vKNb3+FMiKn0ZmLy9nJHXStHHnNcjwJ5OIFyMaG/ehILsGZZusbf5Ns/m5SW0jw0b1q/n5h zzqm89s2QVYEgERTlcizQJKUeem/01It81kiYeSx6X86t6EHU1ze4kLUxSHmxrR0DSBI=; Received: from us-smtp-1.mimecast.com ([207.211.31.81] helo=us-smtp-delivery-1.mimecast.com) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) (Exim 4.92.2) id 1iT600-005Bn8-6E for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 15:16:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573226186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sdJq9GCWEigvvKAEhdiMe0zWBDjEkdIA0zDjk+u6lhw=; b=i8KTcFR1U6B7JhBLjIYtnJvTPNYq0v/0xfnE60lRkorIsC37YD0yjhIso43iWLV32ypJ4p pHKL7YyF0fir7kIr8hIx/uR2xO0s+9DjIHDJCGH9DBQGyOVcEm7cD/vQi9fBzwmr9T07UD miyPvrjMbPeMJvWD6vTlcSHjRnthzCY= 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-289-fhtsWwYyNlO4PtBrYovQIw-1; Fri, 08 Nov 2019 10:16:22 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DC70B180496F; Fri, 8 Nov 2019 15:16:20 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B27485DA7F; Fri, 8 Nov 2019 15:16:17 +0000 (UTC) Date: Fri, 8 Nov 2019 10:16:16 -0500 From: Mike Snitzer To: Damien Le Moal Message-ID: <20191108151616.GA8047@redhat.com> References: <20191108015702.233102-1-damien.lemoal@wdc.com> <20191108015702.233102-10-damien.lemoal@wdc.com> MIME-Version: 1.0 In-Reply-To: <20191108015702.233102-10-damien.lemoal@wdc.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: fhtsWwYyNlO4PtBrYovQIw-1 X-Mimecast-Spam-Score: 0 Content-Disposition: inline X-Headers-End: 1iT600-005Bn8-6E Subject: Re: [f2fs-dev] [PATCH 9/9] block: rework zone reporting X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , linux-f2fs-devel@lists.sourceforge.net, linux-block@vger.kernel.org, dm-devel@redhat.com, Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Thu, Nov 07 2019 at 8:57pm -0500, Damien Le Moal wrote: > From: Christoph Hellwig > > Avoid the need to allocate a potentially large array of struct blk_zone > in the block layer by switching the ->report_zones method interface to > a callback model. Now the caller simply supplies a callback that is > executed on each reported zone, and private data for it. > > Signed-off-by: Christoph Hellwig > Signed-off-by: Shin'ichiro Kawasaki > Signed-off-by: Damien Le Moal Reviewed-by: Mike Snitzer _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 9/9] block: rework zone reporting Date: Fri, 8 Nov 2019 10:16:16 -0500 Message-ID: <20191108151616.GA8047@redhat.com> References: <20191108015702.233102-1-damien.lemoal@wdc.com> <20191108015702.233102-10-damien.lemoal@wdc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20191108015702.233102-10-damien.lemoal@wdc.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Content-Disposition: inline To: Damien Le Moal Cc: Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-block@vger.kernel.org, dm-devel@redhat.com, Jaegeuk Kim List-Id: dm-devel.ids On Thu, Nov 07 2019 at 8:57pm -0500, Damien Le Moal wrote: > From: Christoph Hellwig >=20 > Avoid the need to allocate a potentially large array of struct blk_zone > in the block layer by switching the ->report_zones method interface to > a callback model. Now the caller simply supplies a callback that is > executed on each reported zone, and private data for it. >=20 > Signed-off-by: Christoph Hellwig > Signed-off-by: Shin'ichiro Kawasaki > Signed-off-by: Damien Le Moal Reviewed-by: Mike Snitzer