Skip to content

Commit ee98fac

Browse files
author
Jonathan Corbet
committed
Merge branch 'docs-fixes' into docs-next
Bring a handful of (relatively) urgent fixes into docs-next as well.
2 parents 46e9061 + 7d9c29b commit ee98fac

4 files changed

Lines changed: 165 additions & 164 deletions

File tree

‎.mailmap‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ Jeff Layton <jlayton@kernel.org> <jlayton@poochiereds.net>
131131
Jeff Layton <jlayton@kernel.org> <jlayton@primarydata.com>
132132
Jens Axboe <axboe@suse.de>
133133
Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
134+
Jiri Slaby <jirislaby@kernel.org> <jirislaby@gmail.com>
135+
Jiri Slaby <jirislaby@kernel.org> <jslaby@novell.com>
136+
Jiri Slaby <jirislaby@kernel.org> <jslaby@suse.com>
137+
Jiri Slaby <jirislaby@kernel.org> <jslaby@suse.cz>
138+
Jiri Slaby <jirislaby@kernel.org> <xslaby@fi.muni.cz>
134139
Johan Hovold <johan@kernel.org> <jhovold@gmail.com>
135140
Johan Hovold <johan@kernel.org> <johan@hovoldconsulting.com>
136141
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

‎Documentation/filesystems/f2fs.rst‎

Lines changed: 156 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -101,164 +101,164 @@ Mount Options
101101
=============
102102

103103

104-
====================== ============================================================
105-
background_gc=%s Turn on/off cleaning operations, namely garbage
106-
collection, triggered in background when I/O subsystem is
107-
idle. If background_gc=on, it will turn on the garbage
108-
collection and if background_gc=off, garbage collection
109-
will be turned off. If background_gc=sync, it will turn
110-
on synchronous garbage collection running in background.
111-
Default value for this option is on. So garbage
112-
collection is on by default.
113-
disable_roll_forward Disable the roll-forward recovery routine
114-
norecovery Disable the roll-forward recovery routine, mounted read-
115-
only (i.e., -o ro,disable_roll_forward)
116-
discard/nodiscard Enable/disable real-time discard in f2fs, if discard is
117-
enabled, f2fs will issue discard/TRIM commands when a
118-
segment is cleaned.
119-
no_heap Disable heap-style segment allocation which finds free
120-
segments for data from the beginning of main area, while
121-
for node from the end of main area.
122-
nouser_xattr Disable Extended User Attributes. Note: xattr is enabled
123-
by default if CONFIG_F2FS_FS_XATTR is selected.
124-
noacl Disable POSIX Access Control List. Note: acl is enabled
125-
by default if CONFIG_F2FS_FS_POSIX_ACL is selected.
126-
active_logs=%u Support configuring the number of active logs. In the
127-
current design, f2fs supports only 2, 4, and 6 logs.
128-
Default number is 6.
129-
disable_ext_identify Disable the extension list configured by mkfs, so f2fs
130-
does not aware of cold files such as media files.
131-
inline_xattr Enable the inline xattrs feature.
132-
noinline_xattr Disable the inline xattrs feature.
133-
inline_xattr_size=%u Support configuring inline xattr size, it depends on
134-
flexible inline xattr feature.
135-
inline_data Enable the inline data feature: New created small(<~3.4k)
136-
files can be written into inode block.
137-
inline_dentry Enable the inline dir feature: data in new created
138-
directory entries can be written into inode block. The
139-
space of inode block which is used to store inline
140-
dentries is limited to ~3.4k.
141-
noinline_dentry Disable the inline dentry feature.
142-
flush_merge Merge concurrent cache_flush commands as much as possible
143-
to eliminate redundant command issues. If the underlying
144-
device handles the cache_flush command relatively slowly,
145-
recommend to enable this option.
146-
nobarrier This option can be used if underlying storage guarantees
147-
its cached data should be written to the novolatile area.
148-
If this option is set, no cache_flush commands are issued
149-
but f2fs still guarantees the write ordering of all the
150-
data writes.
151-
fastboot This option is used when a system wants to reduce mount
152-
time as much as possible, even though normal performance
153-
can be sacrificed.
154-
extent_cache Enable an extent cache based on rb-tree, it can cache
155-
as many as extent which map between contiguous logical
156-
address and physical address per inode, resulting in
157-
increasing the cache hit ratio. Set by default.
158-
noextent_cache Disable an extent cache based on rb-tree explicitly, see
159-
the above extent_cache mount option.
160-
noinline_data Disable the inline data feature, inline data feature is
161-
enabled by default.
162-
data_flush Enable data flushing before checkpoint in order to
163-
persist data of regular and symlink.
164-
reserve_root=%d Support configuring reserved space which is used for
165-
allocation from a privileged user with specified uid or
166-
gid, unit: 4KB, the default limit is 0.2% of user blocks.
167-
resuid=%d The user ID which may use the reserved blocks.
168-
resgid=%d The group ID which may use the reserved blocks.
169-
fault_injection=%d Enable fault injection in all supported types with
170-
specified injection rate.
171-
fault_type=%d Support configuring fault injection type, should be
172-
enabled with fault_injection option, fault type value
173-
is shown below, it supports single or combined type.
174-
175-
=================== ===========
176-
Type_Name Type_Value
177-
=================== ===========
178-
FAULT_KMALLOC 0x000000001
179-
FAULT_KVMALLOC 0x000000002
180-
FAULT_PAGE_ALLOC 0x000000004
181-
FAULT_PAGE_GET 0x000000008
182-
FAULT_ALLOC_BIO 0x000000010
183-
FAULT_ALLOC_NID 0x000000020
184-
FAULT_ORPHAN 0x000000040
185-
FAULT_BLOCK 0x000000080
186-
FAULT_DIR_DEPTH 0x000000100
187-
FAULT_EVICT_INODE 0x000000200
188-
FAULT_TRUNCATE 0x000000400
189-
FAULT_READ_IO 0x000000800
190-
FAULT_CHECKPOINT 0x000001000
191-
FAULT_DISCARD 0x000002000
192-
FAULT_WRITE_IO 0x000004000
193-
=================== ===========
194-
mode=%s Control block allocation mode which supports "adaptive"
195-
and "lfs". In "lfs" mode, there should be no random
196-
writes towards main area.
197-
io_bits=%u Set the bit size of write IO requests. It should be set
198-
with "mode=lfs".
199-
usrquota Enable plain user disk quota accounting.
200-
grpquota Enable plain group disk quota accounting.
201-
prjquota Enable plain project quota accounting.
202-
usrjquota=<file> Appoint specified file and type during mount, so that quota
203-
grpjquota=<file> information can be properly updated during recovery flow,
204-
prjjquota=<file> <quota file>: must be in root directory;
205-
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.
209-
quota Enable plain user disk quota accounting.
210-
noquota Disable all plain disk quota option.
211-
whint_mode=%s Control which write hints are passed down to block
212-
layer. This supports "off", "user-based", and
213-
"fs-based". In "off" mode (default), f2fs does not pass
214-
down hints. In "user-based" mode, f2fs tries to pass
215-
down hints given by users. And in "fs-based" mode, f2fs
216-
passes down hints with its policy.
217-
alloc_mode=%s Adjust block allocation policy, which supports "reuse"
218-
and "default".
219-
fsync_mode=%s Control the policy of fsync. Currently supports "posix",
220-
"strict", and "nobarrier". In "posix" mode, which is
221-
default, fsync will follow POSIX semantics and does a
222-
light operation to improve the filesystem performance.
223-
In "strict" mode, fsync will be heavy and behaves in line
224-
with xfs, ext4 and btrfs, where xfstest generic/342 will
225-
pass, but the performance will regress. "nobarrier" is
226-
based on "posix", but doesn't issue flush command for
227-
non-atomic files likewise "nobarrier" mount option.
104+
======================== ============================================================
105+
background_gc=%s Turn on/off cleaning operations, namely garbage
106+
collection, triggered in background when I/O subsystem is
107+
idle. If background_gc=on, it will turn on the garbage
108+
collection and if background_gc=off, garbage collection
109+
will be turned off. If background_gc=sync, it will turn
110+
on synchronous garbage collection running in background.
111+
Default value for this option is on. So garbage
112+
collection is on by default.
113+
disable_roll_forward Disable the roll-forward recovery routine
114+
norecovery Disable the roll-forward recovery routine, mounted read-
115+
only (i.e., -o ro,disable_roll_forward)
116+
discard/nodiscard Enable/disable real-time discard in f2fs, if discard is
117+
enabled, f2fs will issue discard/TRIM commands when a
118+
segment is cleaned.
119+
no_heap Disable heap-style segment allocation which finds free
120+
segments for data from the beginning of main area, while
121+
for node from the end of main area.
122+
nouser_xattr Disable Extended User Attributes. Note: xattr is enabled
123+
by default if CONFIG_F2FS_FS_XATTR is selected.
124+
noacl Disable POSIX Access Control List. Note: acl is enabled
125+
by default if CONFIG_F2FS_FS_POSIX_ACL is selected.
126+
active_logs=%u Support configuring the number of active logs. In the
127+
current design, f2fs supports only 2, 4, and 6 logs.
128+
Default number is 6.
129+
disable_ext_identify Disable the extension list configured by mkfs, so f2fs
130+
does not aware of cold files such as media files.
131+
inline_xattr Enable the inline xattrs feature.
132+
noinline_xattr Disable the inline xattrs feature.
133+
inline_xattr_size=%u Support configuring inline xattr size, it depends on
134+
flexible inline xattr feature.
135+
inline_data Enable the inline data feature: New created small(<~3.4k)
136+
files can be written into inode block.
137+
inline_dentry Enable the inline dir feature: data in new created
138+
directory entries can be written into inode block. The
139+
space of inode block which is used to store inline
140+
dentries is limited to ~3.4k.
141+
noinline_dentry Disable the inline dentry feature.
142+
flush_merge Merge concurrent cache_flush commands as much as possible
143+
to eliminate redundant command issues. If the underlying
144+
device handles the cache_flush command relatively slowly,
145+
recommend to enable this option.
146+
nobarrier This option can be used if underlying storage guarantees
147+
its cached data should be written to the novolatile area.
148+
If this option is set, no cache_flush commands are issued
149+
but f2fs still guarantees the write ordering of all the
150+
data writes.
151+
fastboot This option is used when a system wants to reduce mount
152+
time as much as possible, even though normal performance
153+
can be sacrificed.
154+
extent_cache Enable an extent cache based on rb-tree, it can cache
155+
as many as extent which map between contiguous logical
156+
address and physical address per inode, resulting in
157+
increasing the cache hit ratio. Set by default.
158+
noextent_cache Disable an extent cache based on rb-tree explicitly, see
159+
the above extent_cache mount option.
160+
noinline_data Disable the inline data feature, inline data feature is
161+
enabled by default.
162+
data_flush Enable data flushing before checkpoint in order to
163+
persist data of regular and symlink.
164+
reserve_root=%d Support configuring reserved space which is used for
165+
allocation from a privileged user with specified uid or
166+
gid, unit: 4KB, the default limit is 0.2% of user blocks.
167+
resuid=%d The user ID which may use the reserved blocks.
168+
resgid=%d The group ID which may use the reserved blocks.
169+
fault_injection=%d Enable fault injection in all supported types with
170+
specified injection rate.
171+
fault_type=%d Support configuring fault injection type, should be
172+
enabled with fault_injection option, fault type value
173+
is shown below, it supports single or combined type.
174+
175+
=================== ===========
176+
Type_Name Type_Value
177+
=================== ===========
178+
FAULT_KMALLOC 0x000000001
179+
FAULT_KVMALLOC 0x000000002
180+
FAULT_PAGE_ALLOC 0x000000004
181+
FAULT_PAGE_GET 0x000000008
182+
FAULT_ALLOC_BIO 0x000000010
183+
FAULT_ALLOC_NID 0x000000020
184+
FAULT_ORPHAN 0x000000040
185+
FAULT_BLOCK 0x000000080
186+
FAULT_DIR_DEPTH 0x000000100
187+
FAULT_EVICT_INODE 0x000000200
188+
FAULT_TRUNCATE 0x000000400
189+
FAULT_READ_IO 0x000000800
190+
FAULT_CHECKPOINT 0x000001000
191+
FAULT_DISCARD 0x000002000
192+
FAULT_WRITE_IO 0x000004000
193+
=================== ===========
194+
mode=%s Control block allocation mode which supports "adaptive"
195+
and "lfs". In "lfs" mode, there should be no random
196+
writes towards main area.
197+
io_bits=%u Set the bit size of write IO requests. It should be set
198+
with "mode=lfs".
199+
usrquota Enable plain user disk quota accounting.
200+
grpquota Enable plain group disk quota accounting.
201+
prjquota Enable plain project quota accounting.
202+
usrjquota=<file> Appoint specified file and type during mount, so that quota
203+
grpjquota=<file> information can be properly updated during recovery flow,
204+
prjjquota=<file> <quota file>: must be in root directory;
205+
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.
209+
quota Enable plain user disk quota accounting.
210+
noquota Disable all plain disk quota option.
211+
whint_mode=%s Control which write hints are passed down to block
212+
layer. This supports "off", "user-based", and
213+
"fs-based". In "off" mode (default), f2fs does not pass
214+
down hints. In "user-based" mode, f2fs tries to pass
215+
down hints given by users. And in "fs-based" mode, f2fs
216+
passes down hints with its policy.
217+
alloc_mode=%s Adjust block allocation policy, which supports "reuse"
218+
and "default".
219+
fsync_mode=%s Control the policy of fsync. Currently supports "posix",
220+
"strict", and "nobarrier". In "posix" mode, which is
221+
default, fsync will follow POSIX semantics and does a
222+
light operation to improve the filesystem performance.
223+
In "strict" mode, fsync will be heavy and behaves in line
224+
with xfs, ext4 and btrfs, where xfstest generic/342 will
225+
pass, but the performance will regress. "nobarrier" is
226+
based on "posix", but doesn't issue flush command for
227+
non-atomic files likewise "nobarrier" mount option.
228228
test_dummy_encryption
229229
test_dummy_encryption=%s
230-
Enable dummy encryption, which provides a fake fscrypt
231-
context. The fake fscrypt context is used by xfstests.
232-
The argument may be either "v1" or "v2", in order to
233-
select the corresponding fscrypt policy version.
234-
checkpoint=%s[:%u[%]] Set to "disable" to turn off checkpointing. Set to "enable"
235-
to reenable checkpointing. Is enabled by default. While
236-
disabled, any unmounting or unexpected shutdowns will cause
237-
the filesystem contents to appear as they did when the
238-
filesystem was mounted with that option.
239-
While mounting with checkpoint=disabled, the filesystem must
240-
run garbage collection to ensure that all available space can
241-
be used. If this takes too much time, the mount may return
242-
EAGAIN. You may optionally add a value to indicate how much
243-
of the disk you would be willing to temporarily give up to
244-
avoid additional garbage collection. This can be given as a
245-
number of blocks, or as a percent. For instance, mounting
246-
with checkpoint=disable:100% would always succeed, but it may
247-
hide up to all remaining free space. The actual space that
248-
would be unusable can be viewed at /sys/fs/f2fs/<disk>/unusable
249-
This space is reclaimed once checkpoint=enable.
250-
compress_algorithm=%s Control compress algorithm, currently f2fs supports "lzo",
251-
"lz4", "zstd" and "lzo-rle" algorithm.
252-
compress_log_size=%u Support configuring compress cluster size, the size will
253-
be 4KB * (1 << %u), 16KB is minimum size, also it's
254-
default size.
255-
compress_extension=%s Support adding specified extension, so that f2fs can enable
256-
compression on those corresponding files, e.g. if all files
257-
with '.ext' has high compression rate, we can set the '.ext'
258-
on compression extension list and enable compression on
259-
these file by default rather than to enable it via ioctl.
260-
For other files, we can still enable compression via ioctl.
261-
====================== ============================================================
230+
Enable dummy encryption, which provides a fake fscrypt
231+
context. The fake fscrypt context is used by xfstests.
232+
The argument may be either "v1" or "v2", in order to
233+
select the corresponding fscrypt policy version.
234+
checkpoint=%s[:%u[%]] Set to "disable" to turn off checkpointing. Set to "enable"
235+
to reenable checkpointing. Is enabled by default. While
236+
disabled, any unmounting or unexpected shutdowns will cause
237+
the filesystem contents to appear as they did when the
238+
filesystem was mounted with that option.
239+
While mounting with checkpoint=disabled, the filesystem must
240+
run garbage collection to ensure that all available space can
241+
be used. If this takes too much time, the mount may return
242+
EAGAIN. You may optionally add a value to indicate how much
243+
of the disk you would be willing to temporarily give up to
244+
avoid additional garbage collection. This can be given as a
245+
number of blocks, or as a percent. For instance, mounting
246+
with checkpoint=disable:100% would always succeed, but it may
247+
hide up to all remaining free space. The actual space that
248+
would be unusable can be viewed at /sys/fs/f2fs/<disk>/unusable
249+
This space is reclaimed once checkpoint=enable.
250+
compress_algorithm=%s Control compress algorithm, currently f2fs supports "lzo",
251+
"lz4", "zstd" and "lzo-rle" algorithm.
252+
compress_log_size=%u Support configuring compress cluster size, the size will
253+
be 4KB * (1 << %u), 16KB is minimum size, also it's
254+
default size.
255+
compress_extension=%s Support adding specified extension, so that f2fs can enable
256+
compression on those corresponding files, e.g. if all files
257+
with '.ext' has high compression rate, we can set the '.ext'
258+
on compression extension list and enable compression on
259+
these file by default rather than to enable it via ioctl.
260+
For other files, we can still enable compression via ioctl.
261+
======================== ============================================================
262262

263263
Debugfs Entries
264264
===============

0 commit comments

Comments
 (0)