Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp219976lqf; Fri, 26 Apr 2024 05:03:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUo8gVq/GuuJ/ZTI771D/PyCrlM9eZkpzxhgsfce1+p8qGgKOnh6e+7El8BIwNOcVWJ2RrSnbmq2rYj4+rakn1IU86iO/A+KQ7kUM+AWw== X-Google-Smtp-Source: AGHT+IHm8rzoem2JvhaGNQqHctOFoCGdSOIezuXNIi7ADfg4hs3zHXV76s6B0rWx91RJRQcqZboM X-Received: by 2002:a9d:590a:0:b0:6eb:cdda:7ec with SMTP id t10-20020a9d590a000000b006ebcdda07ecmr2383032oth.25.1714133037327; Fri, 26 Apr 2024 05:03:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714133037; cv=pass; d=google.com; s=arc-20160816; b=J+d2VU707o4HGzzy7r2wdrn6UiZKiCFXRezQfOzaZY12kU7mipap8Y2p9ZfPEPxF/S YSADzFQCS5AFbnhaYnANc4mFK0K5kXleT/WzxWakJlyBAr7UlqcnDIrK4PHjJ8PmlWMY wFf05M4E5fu+1iReD83LAAI9oPvqv855Xp5X/n4G1TEx9rdZMEEOuQxGNCUYxYBY0qHz 0TApY4jAPGlPwLvRX68XSrm6Hqp3EBV+95PhCUuTp3W98KUSoN4yEtzQs7LaKyNBt9zi YYkVQFUKkkZlrkhBTwNsnv7IAjdfl7Qja0+ABorvQ3q37B0WDB486HqXCpr6RBxEyo89 ga0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=4+7FHvu39xebdzsw6m/kOCuq39fZaOLLxKTvmkrBnBU=; fh=r88ULmOhzmh3DE8RgcUXK+PF5Q+3czCYkx5yGhGfkR0=; b=1GRlYmG9g6W4aesIgLOVeTgUhGRJhxGxIS2daj8gJh/xwDl04VXUQKLepVH4+HiFzg 2hKLRA3j9Yhp3jAu0zHYEGPst6xroZYWkASxNdk4T79RUHZ0ruVZkTz37rHH9J2qYMAD iwPqRvdkpR7xxtb+xTIuec0a4dvu18QeXNqLV8LDzcAvyFaSabG72BK+iVlnlgKqTZYt a3+DP3neSGNXXZ1/v7bVUSlX09lCS+05l6PVXEM9AlmgzJKhYQeRhhAMUdha9d9V/K2v 3jtnm+Z9zy7Gj+xiE7RiiQjISIBc3/8uWTnTZVcrCK+kAZmZy5N0DlBX78KuEVUZtxOm g5lA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-159961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159961-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dx9-20020a056102458900b0047bba80dc76si3851863vsb.291.2024.04.26.05.03.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:03:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-159961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159961-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0786B1C21ECE for ; Fri, 26 Apr 2024 12:03:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 781FB145B05; Fri, 26 Apr 2024 12:03:50 +0000 (UTC) Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (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 A3E85145358 for ; Fri, 26 Apr 2024 12:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714133030; cv=none; b=SWcJcdwnRPs324os6wSQDaLHgN1wOHhVRZL39aM1QsPY4G7NOSyFdg7uopA6PstDExXLldpiG/w6T9IiWNVrA+szQMytawmGVevulPwVXRTDBPdmNFaGzs/JPPMnV+Ya+vhzj9Kjx4lNrowgvKGDSuGHFFKVaj2BcJ1/h9nW5Zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714133030; c=relaxed/simple; bh=1YNJVTz06BWFqJ7FQvwgAsfJPj+hF8YmXKjq0iE0r9k=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=io1PjlwjOHzvejs4d8PpVdOdQSMBaozRtfKMoO0go3JI3I+PEjIV0zU1jRw1Vipbl9s7ppoqv2MOlGmTi7seQvu86l4C4MD2MFThhCOvOZ8DiPlgJAP/yiyzdf9DTjitU/YyuLquQaRUUqJlp12W5dSEOUsEPzbaD4eM0YEbtBM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 43QC1c1w090269; Fri, 26 Apr 2024 20:01:38 +0800 (+08) (envelope-from Zhiguo.Niu@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4VQrq51X47z2Nr60C; Fri, 26 Apr 2024 19:58:57 +0800 (CST) Received: from bj08434pcu.spreadtrum.com (10.0.73.87) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 26 Apr 2024 20:01:37 +0800 From: Zhiguo Niu To: , CC: , , , , , Subject: [PATCH V2] f2fs: fix some ambiguous comments Date: Fri, 26 Apr 2024 20:01:29 +0800 Message-ID: <1714132889-9423-1-git-send-email-zhiguo.niu@unisoc.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL:SHSQR01.spreadtrum.com 43QC1c1w090269 After commit d7e9a9037de2 ("f2fs: Support Block Size == Page Size"), Some comments are confused and just correct with block size is 4KB. Signed-off-by: Zhiguo Niu --- v2: add comments "support 64 TB disk size for 16K page size" --- --- include/linux/f2fs_fs.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index a357287..41d1d71 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h @@ -394,7 +394,8 @@ struct f2fs_nat_block { /* * F2FS uses 4 bytes to represent block address. As a result, supported size of - * disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments. + * disk is 16 TB for a 4K page size and 64 TB for a 16K page size and it equals + * to 16 * 1024 * 1024 / 2 segments. */ #define F2FS_MAX_SEGMENT ((16 * 1024 * 1024) / 2) @@ -424,8 +425,10 @@ struct f2fs_sit_block { /* * For segment summary * - * One summary block contains exactly 512 summary entries, which represents - * exactly one segment by default. Not allow to change the basic units. + * One summary block with 4KB size contains exactly 512 summary entries, which + * represents exactly one segment with 2MB size. + * Similarly, in the case of block with 16KB size, it represents one segment with 8MB size. + * Not allow to change the basic units. * * NOTE: For initializing fields, you must use set_summary * @@ -556,6 +559,7 @@ struct f2fs_summary_block { /* * space utilization of regular dentry and inline dentry (w/o extra reservation) + * when block size is 4KB. * regular dentry inline dentry (def) inline dentry (min) * bitmap 1 * 27 = 27 1 * 23 = 23 1 * 1 = 1 * reserved 1 * 3 = 3 1 * 7 = 7 1 * 1 = 1 -- 1.9.1