Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1893125lqp; Tue, 16 Apr 2024 00:21:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4mzrXKKJqJv1iPre9FDEs51vpivuB70tIcYvYHwS9Bqk35Cg2I+lC5YFe5ATsurEYAjWIF2A0FTQZVbsVWKKwS5/2aKUFAl5ilYepeA== X-Google-Smtp-Source: AGHT+IFOAjbAU4O+AtI3WjXtihgTXOJKop4mmtqGr3B3XcG+OPasS7VrknHSLsMbcHaVguTwC3ZL X-Received: by 2002:a50:8754:0:b0:56b:cecb:a4c8 with SMTP id 20-20020a508754000000b0056bcecba4c8mr11164487edv.39.1713252107105; Tue, 16 Apr 2024 00:21:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713252107; cv=pass; d=google.com; s=arc-20160816; b=dDUJg/SgKhJfaTHt2OnyMPSK3eFEmmEffOCaFGmDteWkpNhS5K3thB+MZskx0AjRCs Z6Dl4EssVlZPJl1KDzblVM4DSrKUv1HObcy6WVkbyfEeRyCABBzlVDp68nDWBOPpUOMk AT+EDiBPCUmqENAkXVl0r3WJsh1EvZsStlNQRFwumGiC0E7D8fooKLysgu4FXdfg5vch EsaY2iQWE3yONpQiDI0s+E5ri2tQfE+5SBf0M9m72098uyyfw1uf6RNVhLKup1ASbD9f ZDHkg1TJy4KDwm7Md1ynABG4y9Jk6ybec+Vtojms5h9F77sksc4ENtVJg9LF+Kl7sXtj LElA== 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=9oAC6I2Rz5sk9Vrro3BqfUBlXMctfnRDPUBFhedNdPc=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=RfaSuH3COw03+z3FxXFojXGFlFHWnwr9Evi8OUApWemhnBsT2IwRrTD44URFay/WtW z255ENMyR+ZjuKbk906TS3+pJl2MTmfq0AYmBWgkx2liOQG+qh2FeFtfui4p0fR6n784 rvvOkUWmymHTroRbeJAsgYxP0K8FTAgjyr3quFkCwuqrDRQKcnP4Jdi6oZcnljDZr8OM QxJPRY7OY+7k8Z8YkZhi3jv2yRNxsCfLgnfylte1iKmSKqxvyoIvFsptQXcrM4h4SRhf zrTrV6T/rfvoouJjlg23eQGRT+8fx7wfLBRkleI9/xp/pxIpOaPanPWIg8ZX1n2W5Hwp Yqpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="L/N0NDiq"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v24-20020a509558000000b0056c3783c709si5427378eda.292.2024.04.16.00.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="L/N0NDiq"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146414-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E43401F21D39 for ; Tue, 16 Apr 2024 07:21:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0797484D29; Tue, 16 Apr 2024 07:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L/N0NDiq" 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 331F77FBC6 for ; Tue, 16 Apr 2024 07:21:17 +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=1713252077; cv=none; b=T/9iWYPDfK4CocWpWpJSWrGtpZIhYpN+ZAnBganwh7k1k6DVNSvqXLjJxtDAe9gLVLDCYi2cUkZs7NTzYGx9/m+MdHA5YvOBPf77cJwuhp/40pAtndNryg/8nYfSGYwSllInwt7RJfCm+5CQEMzZ+q05/Ou6hqNKv/LmFo0jD8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713252077; c=relaxed/simple; bh=djpKyoxPD0DIOaQ6IMcLFl5d0YTE8pMEG0ARTsy1XVc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A5KWXnHZrSVWDnQOR+9m0RfvZpU0JOOhf4OdqPtZrSNtoIHkUPntcQXkVB1HeMXSxsXoJlj06zsZ/N9f0JexjTH9wj4vdtwJtCZx1yOa11Vgrf8diiK3kDzmPJVeVlWiNR0PVolJwPMoo4L7iofV2lpJIgNXiCOxcVO7n1r7N7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L/N0NDiq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD080C2BD10; Tue, 16 Apr 2024 07:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713252077; bh=djpKyoxPD0DIOaQ6IMcLFl5d0YTE8pMEG0ARTsy1XVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L/N0NDiqd9ZL7Q8iDqkpEjnMorp+1p7z58Z6PIaYlzoOqQ3QYbXnon6GN8Pt+9Cjn qlEjksywYkAYutBWKmOX2isenwRUFUSr3TwLf2sC54uu9zDntM06FxjFD/Wmeg0m9w +qbhvuZ92E5/zRm9WGKAxzq4fwEfNx2QqhHanMDN7BBrGo6CYBcyZbTH3gOQsozS7U BEnRbc8zSF4zI19StzSPBicX5OvH3GA073yU2SaWltNXw6ucfoMjaHDQFqD0bcB+zo ZQNHn3xEVrxs8uJPwznNs2oulYma54XN/ZVvE1aZ99u0HssYQpcUi7+xbU/LxP/1Ye tSuKANTYjZ2eg== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 2/2] f2fs: remove unnecessary block size check in init_f2fs_fs() Date: Tue, 16 Apr 2024 15:21:08 +0800 Message-Id: <20240416072108.5819-2-chao@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240416072108.5819-1-chao@kernel.org> References: <20240416072108.5819-1-chao@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit After commit d7e9a9037de2 ("f2fs: Support Block Size == Page Size"), F2FS_BLKSIZE equals to PAGE_SIZE, remove unnecessary check condition. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 6d1e4fc629e2..32aa6d6fa871 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4933,12 +4933,6 @@ static int __init init_f2fs_fs(void) { int err; - if (PAGE_SIZE != F2FS_BLKSIZE) { - printk("F2FS not supported on PAGE_SIZE(%lu) != BLOCK_SIZE(%lu)\n", - PAGE_SIZE, F2FS_BLKSIZE); - return -EINVAL; - } - err = init_inodecache(); if (err) goto fail; -- 2.40.1