Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2405342lqp; Sun, 24 Mar 2024 18:09:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqFg+zcndW34FqXpmZwFZqs8x6qGS7QwUF91Tss0k7VOwsQVPyqD8UHxn4xvudQxRScXu8DRKKCyAAsKL4MM6O/yiWZqQsZyF7gZdtUg== X-Google-Smtp-Source: AGHT+IHBULDpRVT8Pe7JTxccRjt45ITkDB2/5+OGlGYY1LNzZMUWFvKfuc4ovuXhVB7v/1pFsKJ3 X-Received: by 2002:a17:90b:1284:b0:2a0:3a16:7489 with SMTP id fw4-20020a17090b128400b002a03a167489mr3379682pjb.44.1711328994526; Sun, 24 Mar 2024 18:09:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328994; cv=pass; d=google.com; s=arc-20160816; b=iQM+44skBHLitKGF1SqPI9Z/E5A5FHgrgGS40SIUoWrNRk67Tc9Mxx4TicGz7zVNUk b+lNuwZwbew3n0um5H6LfuaqXtxk8hs5a9wT/pxHMZEvCBLAVyDJ/ysAJgeFaL9EJ9lH ruPkiXYdRmfweCTCM4jGk8NyVXKSZFElZyobcR2785TosFzWiRHGRcO0eJ4PiygHqNtW ZYgZYp96kChkIfH42ImilrDMbQ170Mo1YxEYvNfEVOgyAI/wY6SIl2fiowhjQNqv1egX rjmC/WNLalQv1nPgywqsM8Ljuz+czTXzDoBqAYFOnBcAY/H1Bcmr9QrZwQjGIsEhYhGX qf6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XGmE4h2ifZyghtM563iNkHO3q0PKkyItrR2kYrHj/ps=; fh=nrKSsqvG+0Qr7jzEBrB7bj256+4AIPc57L7+P0MmaVU=; b=CC+rL6sg4qDT5aFG5damQyF58IktWInyLQsvenDF5K3fKx8z/ZubIdV4JEvTVGqXpy Lfl3ARvSi2PDraCnuONgeEz0U7Egk5uzoLHeFBC6ejUz2rTfGhTamAy04mKaTrnqpRM6 hoK4J+lOMGr41A9IsyXxg6f2Xtmb0WzfYr+kP2pgKmlW7FqVWNG0rkOJnQyGXH3J64kl qG/x0/GiPoTvc2lBJNlKgXp016ckHDJWg1ReWbrlQdDayT96MXr1eg1UISPXAYq/FZsK CNkhYLhPqhaXSkMZ9rH3kB/09SErI9MPwL9p93nhVLIMe0e4AS2+ZQ7Lk8bVoINLYCHD /tsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stoLrILQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113489-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113489-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id em23-20020a17090b015700b0029fb5c619a4si6620734pjb.137.2024.03.24.18.09.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 18:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113489-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stoLrILQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113489-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113489-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C2F48B28ED6 for ; Mon, 25 Mar 2024 00:49:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D39F1B6FB7; Sun, 24 Mar 2024 22:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="stoLrILQ" 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 B8DAC13D26F; Sun, 24 Mar 2024 22:44:50 +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=1711320290; cv=none; b=AywRFewV1jYIiMPKrQsn9Pr0D3RCbPinEJTp/7hYvjWkcLdhs56h+UMqTnR4xDBQTbekZmVJgyYNfRp9pBSfoXCUxxPK1yjVxDyZR2iTbIvy8lRbC1L2jn1fJbN+ihZ5ZzIDhz0ayY8wPODRzjoccsYgR2S45rWWpnf+kNPY18U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320290; c=relaxed/simple; bh=doHdMExkYh7d+6RnWCqt0nUG0jAVLozHtlcdutCqjb0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mJy4O6XPiJdTJl+x8mYFH6aqiVD1XCfw81nsqEmZqP5NSFDKKOpr99KBZytD31ItQ/drNR0peak5lP+RU9W2nW3vvJ5iSLI8GhEfEJcfPX9cphLIaznHSWlEXNmwEi798j1mKHrrdp/MgBPrJAn7MoYrHkBsN8aUTaBNy8Y1AmA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=stoLrILQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 860A1C43390; Sun, 24 Mar 2024 22:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320290; bh=doHdMExkYh7d+6RnWCqt0nUG0jAVLozHtlcdutCqjb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stoLrILQ62GOSSeu7Fvrl5vAIEi+Ck0p2P3jBrzzQrOX4iuy2ipTHUlULxqaar0BG lBX12wgF6hMupSP5IpIg7M/Gq6pwODDUN33FTsw+2iYE5g1y9I8BkDbG0owAe5LRld pSLqKqQMrGsws7oJAYzXTvbXNReUkOYqkYYQpRKj/GKIta6OFP+0Am/MZj+xGdomu9 8Uc+f55rhEspw+/GSGgnmdND9tKLfQFKOJRXKKCwlMnlxt5A1ZfDEP9sOQQpP4vNfQ HzO48zttqbOa4dTP3I5E3oaR4I42SyGXoBo5b/uqhFYVxDemu9nWs19YtB3D2ubapA OdNOfZbr8ylBw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chao Yu , Feng Song , Yongpeng Yang , Jaegeuk Kim , Sasha Levin Subject: [PATCH 6.8 598/715] f2fs: zone: fix to remove pow2 check condition for zoned block device Date: Sun, 24 Mar 2024 18:32:57 -0400 Message-ID: <20240324223455.1342824-599-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Chao Yu [ Upstream commit 11bec96afbfbc4679863db55258de440d786821e ] Commit 2e2c6e9b72ce ("f2fs: remove power-of-two limitation of zoned device") missed to remove pow2 check condition in init_blkz_info(), fix it. Fixes: 2e2c6e9b72ce ("f2fs: remove power-of-two limitation of zoned device") Signed-off-by: Feng Song Signed-off-by: Yongpeng Yang Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/super.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e64ce5abcdf44..4ba613ed3a179 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3936,11 +3936,6 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) return 0; zone_sectors = bdev_zone_sectors(bdev); - if (!is_power_of_2(zone_sectors)) { - f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n"); - return -EINVAL; - } - if (sbi->blocks_per_blkz && sbi->blocks_per_blkz != SECTOR_TO_BLOCK(zone_sectors)) return -EINVAL; -- 2.43.0