Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2302452pxu; Mon, 7 Dec 2020 03:05:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/n2gleI3n/f1iOweNMRl29otNmzsQGVri7jcYBJ6EJjg1YI4cQUXqHWodRKlQVQnzseyX X-Received: by 2002:a17:906:40d3:: with SMTP id a19mr18004673ejk.98.1607339110677; Mon, 07 Dec 2020 03:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607339110; cv=none; d=google.com; s=arc-20160816; b=eKIVc1EMzvIoCHV0gPUiHrzpJQ4akM9YseyCyJDROmZgukZVTlTrOWLXEHQK5f3MtF QmSzhcwPZhrx2HKUjmDy0N4Myi2tTSDQelwzjYSOpXCy9vYFy3LkNKTikUosqDnvEB54 qDcW8fA5OeCvsGnwshYt1aM1pMNyei5QTulBjN7Y0mvBpKnT817ddXaRZq2x2MCbN5Gr qP1Vz533tSEZyK+fr4zKdrZLqWu+K10tXTZko6UhQMcgY4YGE/AqzxsEfHsVWK439z1H I9XtAF+jEIiP+5z2+8UvmyZapCBJZTFNHQjgQAgSDRj8zixpop4i/m1vTpJCo0Wr2eki brdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=pQvDsTgLogbhQpnASGAMoKaFIEGjmsxH1nOn7dd7BfY=; b=UbxSn+aYUoKn5HCOvQjElc6oaObDeUGSPMKlN6YloXbVzwv74MjICZtqNfG33pFCVr eBT96oJKa6VHy/OFW2ZyP8gneHUa+IHdBgGYynXW/LhofaXeqZWkbVd8D4mU5TEmGerS sO5ukPMpcnvBidIXOSrIp+c3EhNQB77i2gcCJteKCI27Qs9ij34stPQe2IekHT2EhRmU VZrslRoGpyhhikBuY2u3SgyGPGHhW2dnx6yaWiFTs+Gb1fLiSCTwMA+zSGmUsbLr2N7d yzmIAqCzV/W5TxRMDCF8I+6Uk4u/qZraVk9P6mPFzmlLcLPl8o83fNV8kI8966lWxpsY /+GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw6si7735626edb.154.2020.12.07.03.04.47; Mon, 07 Dec 2020 03:05:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726584AbgLGLA3 (ORCPT + 99 others); Mon, 7 Dec 2020 06:00:29 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:46168 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgLGLA2 (ORCPT ); Mon, 7 Dec 2020 06:00:28 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1358769|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0423175-0.000134208-0.957548;FP=14281600786208716458|1|1|4|0|-1|-1|-1;HT=ay29a033018047206;MF=liush@allwinnertech.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.J47Legk_1607338777; Received: from localhost.localdomain(mailfrom:liush@allwinnertech.com fp:SMTPD_---.J47Legk_1607338777) by smtp.aliyun-inc.com(10.147.42.253); Mon, 07 Dec 2020 18:59:45 +0800 From: liush To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, tiny.windzz@gmail.com, Shaohua Liu Subject: [PATCH 2/2] f2fs: don't check PAGE_SIZE again in sanity_check_raw_super() Date: Mon, 7 Dec 2020 18:59:34 +0800 Message-Id: <1607338774-8541-2-git-send-email-liush@allwinnertech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607338774-8541-1-git-send-email-liush@allwinnertech.com> References: <1607338774-8541-1-git-send-email-liush@allwinnertech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yangtao Li Many flash devices read and write a single IO based on a multiple of 4KB, and we support only 4KB page cache size now. Since we already check page size in init_f2fs_fs(), so remove page size check in sanity_check_raw_super(). Signed-off-by: Yangtao Li Signed-off-by: Shaohua Liu --- fs/f2fs/super.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index d3ccf89647df..a39a81ab8dee 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2770,13 +2770,6 @@ static int sanity_check_raw_super(struct f2fs_sb_info *sbi, } } - /* Currently, support only 4KB page cache size */ - if (F2FS_BLKSIZE != PAGE_SIZE) { - f2fs_info(sbi, "Invalid page_cache_size (%lu), supports only 4KB", - PAGE_SIZE); - return -EFSCORRUPTED; - } - /* Currently, support only 4KB block size */ blocksize = 1 << le32_to_cpu(raw_super->log_blocksize); if (blocksize != F2FS_BLKSIZE) { -- 2.25.1