Skip to content

Commit ca313c8

Browse files
rddunlapJaegeuk Kim
authored andcommitted
f2fs: Documentation edits/fixes
Correct grammar and spelling. Drop duplicate section for resize.f2fs. Change one occurrence of F2fs to F2FS for consistency. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Jaegeuk Kim <jaegeuk@kernel.org> Cc: Chao Yu <yuchao0@huawei.com> Cc: linux-f2fs-devel@lists.sourceforge.net Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 0e2b738 commit ca313c8

1 file changed

Lines changed: 23 additions & 30 deletions

File tree

‎Documentation/filesystems/f2fs.rst‎

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ active_logs=%u Support configuring the number of active logs. In the
127127
current design, f2fs supports only 2, 4, and 6 logs.
128128
Default number is 6.
129129
disable_ext_identify Disable the extension list configured by mkfs, so f2fs
130-
does not aware of cold files such as media files.
130+
is not aware of cold files such as media files.
131131
inline_xattr Enable the inline xattrs feature.
132132
noinline_xattr Disable the inline xattrs feature.
133133
inline_xattr_size=%u Support configuring inline xattr size, it depends on
134134
flexible inline xattr feature.
135-
inline_data Enable the inline data feature: New created small(<~3.4k)
135+
inline_data Enable the inline data feature: Newly created small (<~3.4k)
136136
files can be written into inode block.
137-
inline_dentry Enable the inline dir feature: data in new created
137+
inline_dentry Enable the inline dir feature: data in newly created
138138
directory entries can be written into inode block. The
139139
space of inode block which is used to store inline
140140
dentries is limited to ~3.4k.
@@ -203,9 +203,9 @@ usrjquota=<file> Appoint specified file and type during mount, so that quota
203203
grpjquota=<file> information can be properly updated during recovery flow,
204204
prjjquota=<file> <quota file>: must be in root directory;
205205
jqfmt=<quota type> <quota type>: [vfsold,vfsv0,vfsv1].
206-
offusrjquota Turn off user journelled quota.
207-
offgrpjquota Turn off group journelled quota.
208-
offprjjquota Turn off project journelled quota.
206+
offusrjquota Turn off user journalled quota.
207+
offgrpjquota Turn off group journalled quota.
208+
offprjjquota Turn off project journalled quota.
209209
quota Enable plain user disk quota accounting.
210210
noquota Disable all plain disk quota option.
211211
whint_mode=%s Control which write hints are passed down to block
@@ -303,7 +303,7 @@ Usage
303303

304304
# insmod f2fs.ko
305305

306-
3. Create a directory trying to mount::
306+
3. Create a directory to use when mounting::
307307

308308
# mkdir /mnt/f2fs
309309

@@ -339,7 +339,7 @@ The quick options consist of:
339339
1 is set by default, which conducts discard.
340340
=============== ===========================================================
341341

342-
Note that, please refer manpage of mkfs.f2fs(8) to get full option list.
342+
Note: please refer to the manpage of mkfs.f2fs(8) to get full option list.
343343

344344
fsck.f2fs
345345
---------
@@ -352,7 +352,7 @@ The quick options consist of::
352352

353353
-d debug level [default:0]
354354

355-
Note that, please refer manpage of fsck.f2fs(8) to get full option list.
355+
Note: please refer to the manpage of fsck.f2fs(8) to get full option list.
356356

357357
dump.f2fs
358358
---------
@@ -377,43 +377,36 @@ Examples::
377377
# dump.f2fs -s 0~-1 /dev/sdx (SIT dump)
378378
# dump.f2fs -a 0~-1 /dev/sdx (SSA dump)
379379

380-
Note that, please refer manpage of dump.f2fs(8) to get full option list.
380+
Note: please refer to the manpage of dump.f2fs(8) to get full option list.
381381

382382
sload.f2fs
383383
----------
384384
The sload.f2fs gives a way to insert files and directories in the exisiting disk
385385
image. This tool is useful when building f2fs images given compiled files.
386386

387-
Note that, please refer manpage of sload.f2fs(8) to get full option list.
387+
Note: please refer to the manpage of sload.f2fs(8) to get full option list.
388388

389389
resize.f2fs
390390
-----------
391-
The resize.f2fs can be used when user want to resize the f2fs-formatted disk
392-
image, while keeping the stored files and directories.
393-
394-
Note that, please refer manpage of resize.f2fs(8) to get full option list.
395-
396-
resize.f2fs
397-
-----------
398-
The resize.f2fs let user resize the f2fs-formatted disk image, while preserving
391+
The resize.f2fs lets a user resize the f2fs-formatted disk image, while preserving
399392
all the files and directories stored in the image.
400393

401-
Note that, please refer manpage of resize.f2fs(8) to get full option list.
394+
Note: please refer to the manpage of resize.f2fs(8) to get full option list.
402395

403396
defrag.f2fs
404397
-----------
405-
The defrag.f2fs can be used to defragmente scattered writtend data as well as
398+
The defrag.f2fs can be used to defragment scattered written data as well as
406399
filesystem metadata across the disk. This can improve the write speed by giving
407400
more free consecutive space.
408401

409-
Note that, please refer manpage of defrag.f2fs(8) to get full option list.
402+
Note: please refer to the manpage of defrag.f2fs(8) to get full option list.
410403

411404
f2fs_io
412405
-------
413406
The f2fs_io is a simple tool to issue various filesystem APIs as well as
414407
f2fs-specific ones, which is very useful for QA tests.
415408

416-
Note that, please refer manpage of f2fs_io(8) to get full option list.
409+
Note: please refer to the manpage of f2fs_io(8) to get full option list.
417410

418411
Design
419412
======
@@ -427,7 +420,7 @@ consists of a set of sections. By default, section and zone sizes are set to one
427420
segment size identically, but users can easily modify the sizes by mkfs.
428421

429422
F2FS splits the entire volume into six areas, and all the areas except superblock
430-
consists of multiple segments as described below::
423+
consist of multiple segments as described below::
431424

432425
align with the zone size <-|
433426
|-> align with the segment size
@@ -530,7 +523,7 @@ one inode block (i.e., a file) covers::
530523
`- direct node (1018)
531524
`- data (1018)
532525

533-
Note that, all the node blocks are mapped by NAT which means the location of
526+
Note that all the node blocks are mapped by NAT which means the location of
534527
each node is translated by the NAT table. In the consideration of the wandering
535528
tree problem, F2FS is able to cut off the propagation of node updates caused by
536529
leaf data writes.
@@ -610,7 +603,7 @@ When F2FS finds a file name in a directory, at first a hash value of the file
610603
name is calculated. Then, F2FS scans the hash table in level #0 to find the
611604
dentry consisting of the file name and its inode number. If not found, F2FS
612605
scans the next hash table in level #1. In this way, F2FS scans hash tables in
613-
each levels incrementally from 1 to N. In each levels F2FS needs to scan only
606+
each levels incrementally from 1 to N. In each level F2FS needs to scan only
614607
one bucket determined by the following equation, which shows O(log(# of files))
615608
complexity::
616609

@@ -751,7 +744,7 @@ WRITE_LIFE_LONG " WRITE_LIFE_LONG
751744
Fallocate(2) Policy
752745
-------------------
753746

754-
The default policy follows the below posix rule.
747+
The default policy follows the below POSIX rule.
755748

756749
Allocating disk space
757750
The default operation (i.e., mode is zero) of fallocate() allocates
@@ -764,7 +757,7 @@ Allocating disk space
764757
as a method of optimally implementing that function.
765758

766759
However, once F2FS receives ioctl(fd, F2FS_IOC_SET_PIN_FILE) in prior to
767-
fallocate(fd, DEFAULT_MODE), it allocates on-disk blocks addressess having
760+
fallocate(fd, DEFAULT_MODE), it allocates on-disk block addressess having
768761
zero or random data, which is useful to the below scenario where:
769762

770763
1. create(fd)
@@ -783,7 +776,7 @@ Compression implementation
783776
cluster can be compressed or not.
784777

785778
- In cluster metadata layout, one special block address is used to indicate
786-
cluster is compressed one or normal one, for compressed cluster, following
779+
a cluster is a compressed one or normal one; for compressed cluster, following
787780
metadata maps cluster to [1, 4 << n - 1] physical blocks, in where f2fs
788781
stores data including compress header and compressed data.
789782

@@ -822,7 +815,7 @@ NVMe Zoned Namespace devices
822815

823816
- ZNS defines a per-zone capacity which can be equal or less than the
824817
zone-size. Zone-capacity is the number of usable blocks in the zone.
825-
F2fs checks if zone-capacity is less than zone-size, if it is, then any
818+
F2FS checks if zone-capacity is less than zone-size, if it is, then any
826819
segment which starts after the zone-capacity is marked as not-free in
827820
the free segment bitmap at initial mount time. These segments are marked
828821
as permanently used so they are not allocated for writes and

0 commit comments

Comments
 (0)