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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40626C433EF for ; Thu, 26 May 2022 12:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347441AbiEZM6X (ORCPT ); Thu, 26 May 2022 08:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347435AbiEZM6U (ORCPT ); Thu, 26 May 2022 08:58:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A68455E147 for ; Thu, 26 May 2022 05:58:18 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 55A5A1F924; Thu, 26 May 2022 12:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1653569897; h=from:from:reply-to: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=oT+xq69o16GQC4JyZsbCjUd31lE+DZrCANTNcXjx6Qo=; b=YsEdkzpwtRgdR4xCUL/glqL92/ODIT9TFizdQdrs3x29Pzry0d1yvst65Sad9uz1T0zzlW JPuc0v3s6iw/vYxT6VR5++5Of0eBlgTQ+JReoqlIp90CiSqwXfrLCdNJVVSvStN8Ih0Tc/ HEEPOj8+Ev3afhkzyp5fyCTrTpMzxYg= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 013061351F; Thu, 26 May 2022 12:58:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8DIuOWh5j2JnWgAAMHmgww (envelope-from ); Thu, 26 May 2022 12:58:16 +0000 Message-ID: <76550a2c-94ea-8983-7f15-8a54c5c33faa@suse.com> Date: Thu, 26 May 2022 15:58:16 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 7/8] btrfs: add a helper to iterate through a btrfs_bio with sector sized chunks Content-Language: en-US To: Christoph Hellwig , Chris Mason , Josef Bacik , David Sterba Cc: Qu Wenruo , linux-btrfs@vger.kernel.org References: <20220522114754.173685-1-hch@lst.de> <20220522114754.173685-8-hch@lst.de> From: Nikolay Borisov In-Reply-To: <20220522114754.173685-8-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 22.05.22 г. 14:47 ч., Christoph Hellwig wrote: > From: Qu Wenruo > > Add a helper that works similar to __bio_for_each_segment, but instead of > iterating over PAGE_SIZE chunks it iterates over each sector. > > Signed-off-by: Qu Wenruo > [hch: split from a larger patch, and iterate over the offset instead of > the offset bits] > Signed-off-by: Christoph Hellwig Reviewed-by: Nikolay Borisov