Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp783148lqa; Sun, 28 Apr 2024 04:23:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXExBWQcptg9TgUefUF8nM9QWWjk5EDpvOmiDQoea6kp7mKPdMQwsHcF1cYTO5FZVXCDbmIdxX3RQRBPU2SrE0WeQR0im3WmUab1B4Dqw== X-Google-Smtp-Source: AGHT+IGi60+vsEqupwybmnb9PTOESDCag4TZ0S4eF74lo3e81xJ3IWwwj3HofXqFUp99uqqC5fwg X-Received: by 2002:a17:902:ce86:b0:1e4:55d8:dfae with SMTP id f6-20020a170902ce8600b001e455d8dfaemr9004255plg.4.1714303410389; Sun, 28 Apr 2024 04:23:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714303410; cv=pass; d=google.com; s=arc-20160816; b=e0rhGnHVnaoMkcr0539/Dejn9XNVO/FhGLqwUCdrAq5q2hUMID1ICyVX198NVjZyvc KIVsDTOX27tKYXjPSXqlh0r3aqdXdLcgC7tU+TS3LdRc+FTTHeRrYMvpgWJy9oCBURhL siOMDav6veWOj900AK33X2o4Sw6dCSToQRlFRNjbh2IA/mGqpgx8ypVPkFe4ujpbbV+4 arme2BF9/rwfF2WkpcuSSsWyfibho2M2u3Ytf+hUdUIlEnTQAM0N7nzA5FNU4DD8ZHtZ B5wBN4VHrvRYFJHAhkSfZaa5QRJG5+AJ3naPmXgLh2fRfdXeYDqKOYuFdXKxOYp4y2dd 5KJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=omsczfUp2PRD193Ej/snc5CN5dzLUiN3eOK3p09kAtE=; fh=y+SwDKitldk+0lmxuFszEXeuG7K2E8tJkCKNfW+i/jY=; b=dw9Czj403Xr1BRsx8GiQZUaRfZC1Hp1KBemeOEYTYOTeI+IMD5z9Y2nO6SIGU6Yd43 4GF+QLoaqdz51J64Ba4cCQndXUCm4w4mSwWG55U9pZbGtZpmE7I0ISjUC/L3acvVWWsN aP0mvmvSP8sC3PfH6em98BlBNeF1hJzELitNPCFZa4OTOlrSvzIBRk357Np5W4nD0LJR iAYvWnqyuA9naWv1PnrIYoPnottAzzdSV2H1+sPnQItlXK+kt4m/VUl3e1chhBP7dBCa 6POfbXVwXsPrTevkSm8ZCE2heYk/BcdkYuXhlX8cBFWB5jU0e1uDFgYp6lox9lAnbGqr 8h3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a7+xVqZT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w1-20020a170902e88100b001e02dff570esi18347776plg.202.2024.04.28.04.23.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 04:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a7+xVqZT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 076A9281E6B for ; Sun, 28 Apr 2024 11:23:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E52E5786E; Sun, 28 Apr 2024 11:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a7+xVqZT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB23456B6C for ; Sun, 28 Apr 2024 11:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714303403; cv=none; b=RJiPhHZslvT6XDvcljpNg8qbiM4Wr/J2U2ClwB9QDe4rnNzukaF5FcEr/TqpELms28mpH6gLp/q03UsL+Muig3GEekLq1PcBhhP1vZNvE1ciUW6HUH1sYqI+EqbFRW/IIhrR8lvEZPpaqh3HP26tlD/uB2KDiXnOxJTN6vSwlwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714303403; c=relaxed/simple; bh=qeSlEnULi1s8O4qV+q5O9CH7dsCvGcClXmiaLVpkARU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hevkgU6BgOdpHCG2ByOAT/AmaSlA0B7N1/SX8SPtaIDyd1xMw7IU1+LFAZ9wHwppghWNpAXAFGKoOQyC25cL/FoMPh87LPPr+efybkBeu4YuwDwsoB1bL4Ztwjnq3q9KXcBMMfUjlH7h5ZCTmNGV0jMyEh5LEZFbVefcdel8Ujg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a7+xVqZT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2643C113CC; Sun, 28 Apr 2024 11:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714303403; bh=qeSlEnULi1s8O4qV+q5O9CH7dsCvGcClXmiaLVpkARU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=a7+xVqZTUUSVCh78XU7dKkzK7vgpylcPKZADLwILLepCP75gkYNa0cI2nTDogIpTO 7MsAUvTh+U2PbWMfKIpBsv20imwXHA8/xOY70KL01Jiv4dbbFdkaKDCveTiQldivav RWGTUoqd90ptzANwEvFV2ey6JNsnQb3UbjIu5/1fW5zaZAfnwfSUGHLIYAxeIZwk0U MyeY7ZweBumfxBDCy+lsDE4Kzr3G1UcZIag4u636Hmmc+D7I/9TQjVUya7t5BSPrB0 hPB+3Zifi2ObG+g0yFEj57Uhql//uEHqlsz3O+YgaNtd3wUFgqfbQuHxEv+YpgnOU3 7O6z4QV509KIg== Message-ID: <7f97aae7-557d-4fac-854b-594e99939598@kernel.org> Date: Sun, 28 Apr 2024 19:23:19 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] f2fs:remove the restriction on zone sector being align to pow2 To: Liao Yuanhong , Jaegeuk Kim Cc: bo.wu@vivo.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20240428111457.17224-1-liaoyuanhong@vivo.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20240428111457.17224-1-liaoyuanhong@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/4/28 19:14, Liao Yuanhong wrote: > For zoned-UFS, sector size may not aligned to pow2, so we need to remove > the pow2 limitation. > > Signed-off-by: Liao Yuanhong > --- > drivers/md/dm-table.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c > index 41f1d731ae5a..823f2f6a2d53 100644 > --- a/drivers/md/dm-table.c > +++ b/drivers/md/dm-table.c Hi, please discuss this in dm-devel@lists.linux.dev, thanks. Thanks, > @@ -1663,10 +1663,6 @@ static int validate_hardware_zoned(struct dm_table *t, bool zoned, > return -EINVAL; > } > > - /* Check zone size validity and compatibility */ > - if (!zone_sectors || !is_power_of_2(zone_sectors)) > - return -EINVAL; > - > if (dm_table_any_dev_attr(t, device_not_matches_zone_sectors, &zone_sectors)) { > DMERR("%s: zone sectors is not consistent across all zoned devices", > dm_device_name(t->md));