From patchwork Tue Apr 16 07:21:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Yu X-Patchwork-Id: 13631476 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A67BFC4345F for ; Tue, 16 Apr 2024 07:21:23 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1rwd86-0007if-Fx; Tue, 16 Apr 2024 07:21:22 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rwd85-0007iY-5V for linux-f2fs-devel@lists.sourceforge.net; Tue, 16 Apr 2024 07:21:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PwN7zq5CuR/8dF8HeTh8pL7KL9hqaJlQwDWs8XtBLuk=; b=B5yjfLKIWCfsBWEMFXoY8IrEk1 GNLgOKnmxQ4bxfbftlRelxX8gKRY7hozgW1KP0GrT4umvZ3nlvMg/IQMzlRcIoek2SumRP10dGe3P cdNBVvWcCrA3bC4C1ybmZZHgXcSQEB+T6UbFX0oEUfxMvBxKlxw1ghp1F/RlW/6WTKwI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=PwN7zq5CuR/8dF8HeTh8pL7KL9hqaJlQwDWs8XtBLuk=; b=V YsJ6EzW2/of7CwCjHTl2o4AzvniJCwbF1ZXjkRug+MqEK7KEQHWZ3bysDE4mhtIrHXSy+kC9zCG9C Z+FOBO3mIP9B+lIVY4SygWAe14pO23Am9KA+e1s+SnWRoofnZX0OpQC+AJ7exf449sTldn0Iie5mp Q77008cO07AVuYWY=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1rwd84-0002mg-Vs for linux-f2fs-devel@lists.sourceforge.net; Tue, 16 Apr 2024 07:21:21 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7A92D60ECF for ; Tue, 16 Apr 2024 07:21:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8F64C113CE; Tue, 16 Apr 2024 07:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713252075; bh=0eAYPFz5NJz8CvYb2+reHHZOCHtdyUHNHA7JFN9scDM=; h=From:To:Cc:Subject:Date:From; b=XBG7NtgcrQECr0YpoPjUOFyUyw2eqNUa6jVQRPDU3MaoW3IouNXXIHJ8kjMy3n81O XXS7DknigjgoYcLCtZe0+lCTSxQOrbNHKR4s2pLNEVJ25vlZ6anG6oMO4fYNNmLjqs v6VEEgbvfZhTWxifnycvVWkzVEshrl82iK6c744yo2hfzBHRdpvahYBS68hqKPx5Op +yqhcsFO4FVFu6U1TjzOsRtkcukDpP9VRco+z8g2Z+lmQozIS/fiXO4iur/ciZ7ODx QEhbxMQ8W3e2PvxyBIUJNfwyEnC5ukc9rvhkhPvBE61r7gP/lLwRMymtU69gRWt8U+ 56xngnOpHXVpQ== From: Chao Yu To: jaegeuk@kernel.org Date: Tue, 16 Apr 2024 15:21:07 +0800 Message-Id: <20240416072108.5819-1-chao@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Headers-End: 1rwd84-0002mg-Vs Subject: [f2fs-dev] [PATCH 1/2] f2fs: fix comment in sanity_check_raw_super() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Commit d7e9a9037de2 ("f2fs: Support Block Size == Page Size") missed to adjust comment in sanity_check_raw_super(), fix it. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 0a34c8746782..6d1e4fc629e2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3456,7 +3456,7 @@ static int sanity_check_raw_super(struct f2fs_sb_info *sbi, } } - /* Currently, support only 4KB block size */ + /* only support block_size equals to PAGE_SIZE */ if (le32_to_cpu(raw_super->log_blocksize) != F2FS_BLKSIZE_BITS) { f2fs_info(sbi, "Invalid log_blocksize (%u), supports only %u", le32_to_cpu(raw_super->log_blocksize), From patchwork Tue Apr 16 07:21:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Yu X-Patchwork-Id: 13631477 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26E91C4345F for ; Tue, 16 Apr 2024 07:21:31 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1rwd8E-0003F7-0G; Tue, 16 Apr 2024 07:21:30 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rwd8B-0003Ep-Ks for linux-f2fs-devel@lists.sourceforge.net; Tue, 16 Apr 2024 07:21:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9oAC6I2Rz5sk9Vrro3BqfUBlXMctfnRDPUBFhedNdPc=; b=QdwFmdzbO0YHOnV3libQcXJSYK N67tvTW6PSdgvdm58AsC3v233FvA7tnkr5myaOvNY81P/ltDbTDOC9mhkJJa4+JAwYadYallg+Ddf SeNWFr0unl78pFCngn8xVKpzCnkUQxJg21ZVZCjDgFBYIiduHRDQkeiyDxFKf6b6pn04=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9oAC6I2Rz5sk9Vrro3BqfUBlXMctfnRDPUBFhedNdPc=; b=ljy12OFhLkKWxDGOd74nsw43y1 g5Ceq4jFdD5Bv8RyEULeWrngd6dg3nctJGsGvumC03PgB0PcD7Ea50nWUr2Ci+URvPHEtDtIFsFwG zg+bNphaT9UNqtNbSrRXke8hJhhtQp9sw4fSxVlcH5ghoSRAP4dLfdlQQXLs03hZKGcY=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1rwd8B-0002nN-Nm for linux-f2fs-devel@lists.sourceforge.net; Tue, 16 Apr 2024 07:21:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3D2F361077 for ; Tue, 16 Apr 2024 07:21:17 +0000 (UTC) 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 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> MIME-Version: 1.0 X-Headers-End: 1rwd8B-0002nN-Nm Subject: [f2fs-dev] [PATCH 2/2] f2fs: remove unnecessary block size check in init_f2fs_fs() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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;