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=-10.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 F11F7C433DB for ; Fri, 15 Jan 2021 22:21:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C606123A1C for ; Fri, 15 Jan 2021 22:21:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726584AbhAOWV3 (ORCPT ); Fri, 15 Jan 2021 17:21:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbhAOWV3 (ORCPT ); Fri, 15 Jan 2021 17:21:29 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E78B1C0613D3 for ; Fri, 15 Jan 2021 14:20:48 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id z20so7217673qtq.3 for ; Fri, 15 Jan 2021 14:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zxbJ3C2Wh7iG6P8iLG/G4N3xjaagWOAu/Q6gR+krxvs=; b=z8z0DHvDg+mqcJIvmS2VHAz3PhgyVD1R/uO6LFpEUWhOzrWOLhFahBDe8e4+xRmmMf FImQIInpaoZxhYrNXteHjWKnyajjGfZ7Ueumwr9WQSP2Wgwr2NzePiBS5J79S2yArBrD VZMv4kWwrPmjjV+9pThTf3XtB4nsIZ1jgJTqxQWpKdaPTatlSN23kQx9FevsUI42+JZ6 3ZYyIlvN3Mf+X197FECaKP9nQoB9I2xXevf1/fw5Ra+SsJ/VZuA20lt5DyyPcJOoZzlO Sm1nqJ3gj89JRp/znuGfwfdmp8mi8wxspSgeSwq06UqdfusPRuMb5vjZWVug4q360VLL MZlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zxbJ3C2Wh7iG6P8iLG/G4N3xjaagWOAu/Q6gR+krxvs=; b=ePPkBDt6Kn8DVcSZi59085gOThUwpvHiv4HO//bC7FkuZ9yayYkaBZrDDso5WQ4tB3 SQDwbGshm98Rk6GsqK7d600lke/mz2SwZV8HMnqCnIx0xPoTL2/76BIMYwfA2lruw/4G Cvsk6KVy+Stcf7dc9gmzLl1J4W2X9eIfJHRGZOXMxveqhLpTqAqI/c95VzUBTzNq5r9g ZY6vQpHNU4an6lqGnIYEYEtlW9Ny+ckPydLDPmXqBpf6hH9XEfouAOdOgKA7eeGrA8Uq 0dZHVh/hs7Z39IzSOG/FvWgscfVtXvpWb0FTczwxS22RLVcq/P1VpK62IpiMTmYMDtum WeEA== X-Gm-Message-State: AOAM5324xWUrwq9fMt6fUVwZ1AazwEnDIZFIzMn+m78eatu7F0XlNRFm FOudDCDyzZzuEVSxSyqi0S3k9g== X-Google-Smtp-Source: ABdhPJz3m+/27qVjnWSz5OwhE5Au9c/12sCQBx5hV8ktKYqfs4bswD7MjwFYIP+HXR+qGd8psuUHPg== X-Received: by 2002:aed:3ac1:: with SMTP id o59mr9631789qte.203.1610749248081; Fri, 15 Jan 2021 14:20:48 -0800 (PST) Received: from ?IPv6:2620:10d:c0a8:11e1::105d? ([2620:10d:c091:480::1:cc17]) by smtp.gmail.com with ESMTPSA id v47sm1035361qtb.42.2021.01.15.14.20.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Jan 2021 14:20:47 -0800 (PST) Subject: Re: [PATCH v12 04/41] btrfs: use regular SB location on emulated zoned mode To: Naohiro Aota , linux-btrfs@vger.kernel.org, dsterba@suse.com Cc: hare@suse.com, linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig , "Darrick J. Wong" References: <30ac9e674289d206ec9299228d38cd7d03cd16c4.1610693037.git.naohiro.aota@wdc.com> From: Josef Bacik Message-ID: <13285359-e64c-a2db-1d9d-20b523e0c510@toxicpanda.com> Date: Fri, 15 Jan 2021 17:20:45 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <30ac9e674289d206ec9299228d38cd7d03cd16c4.1610693037.git.naohiro.aota@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 1/15/21 1:53 AM, Naohiro Aota wrote: > The zoned btrfs puts a superblock at the beginning of SB logging zones > if the zone is conventional. This difference causes a chicken-and-egg > problem for emulated zoned mode. Since the device is a regular > (non-zoned) device, we cannot know if the btrfs is regular or emulated > zoned while we read the superblock. But, to load proper superblock, we > need to see if it is emulated zoned or not. > > We place the SBs at the same location as the regular btrfs on emulated > zoned mode to solve the problem. It is possible because it's ensured > that all the SB locations are at a conventional zone on emulated zoned > mode. > > Signed-off-by: Naohiro Aota Ok so in emulated mode we simply won't be able to test the SB logging stuff. I think this is an OK trade-off, Reviewed-by: Josef Bacik Thanks, Josef