aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-fs-f2fs31
-rw-r--r--Documentation/filesystems/f2fs.txt24
2 files changed, 55 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs b/Documentation/ABI/testing/sysfs-fs-f2fs
index 31942efcaf0e..32b0809203dd 100644
--- a/Documentation/ABI/testing/sysfs-fs-f2fs
+++ b/Documentation/ABI/testing/sysfs-fs-f2fs
@@ -24,3 +24,34 @@ Date: July 2013
24Contact: "Namjae Jeon" <namjae.jeon@samsung.com> 24Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
25Description: 25Description:
26 Controls the victim selection policy for garbage collection. 26 Controls the victim selection policy for garbage collection.
27
28What: /sys/fs/f2fs/<disk>/reclaim_segments
29Date: October 2013
30Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
31Description:
32 Controls the issue rate of segment discard commands.
33
34What: /sys/fs/f2fs/<disk>/ipu_policy
35Date: November 2013
36Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
37Description:
38 Controls the in-place-update policy.
39
40What: /sys/fs/f2fs/<disk>/min_ipu_util
41Date: November 2013
42Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
43Description:
44 Controls the FS utilization condition for the in-place-update
45 policies.
46
47What: /sys/fs/f2fs/<disk>/max_small_discards
48Date: November 2013
49Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
50Description:
51 Controls the issue rate of small discard commands.
52
53What: /sys/fs/f2fs/<disk>/max_victim_search
54Date: January 2014
55Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
56Description:
57 Controls the number of trials to find a victim segment.
diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt
index a3fe811bbdbc..b8d284975f0f 100644
--- a/Documentation/filesystems/f2fs.txt
+++ b/Documentation/filesystems/f2fs.txt
@@ -120,6 +120,8 @@ active_logs=%u Support configuring the number of active logs. In the
120disable_ext_identify Disable the extension list configured by mkfs, so f2fs 120disable_ext_identify Disable the extension list configured by mkfs, so f2fs
121 does not aware of cold files such as media files. 121 does not aware of cold files such as media files.
122inline_xattr Enable the inline xattrs feature. 122inline_xattr Enable the inline xattrs feature.
123inline_data Enable the inline data feature: New created small(<~3.4k)
124 files can be written into inode block.
123 125
124================================================================================ 126================================================================================
125DEBUGFS ENTRIES 127DEBUGFS ENTRIES
@@ -171,6 +173,28 @@ Files in /sys/fs/f2fs/<devname>
171 conduct checkpoint to reclaim the prefree segments 173 conduct checkpoint to reclaim the prefree segments
172 to free segments. By default, 100 segments, 200MB. 174 to free segments. By default, 100 segments, 200MB.
173 175
176 max_small_discards This parameter controls the number of discard
177 commands that consist small blocks less than 2MB.
178 The candidates to be discarded are cached until
179 checkpoint is triggered, and issued during the
180 checkpoint. By default, it is disabled with 0.
181
182 ipu_policy This parameter controls the policy of in-place
183 updates in f2fs. There are five policies:
184 0: F2FS_IPU_FORCE, 1: F2FS_IPU_SSR,
185 2: F2FS_IPU_UTIL, 3: F2FS_IPU_SSR_UTIL,
186 4: F2FS_IPU_DISABLE.
187
188 min_ipu_util This parameter controls the threshold to trigger
189 in-place-updates. The number indicates percentage
190 of the filesystem utilization, and used by
191 F2FS_IPU_UTIL and F2FS_IPU_SSR_UTIL policies.
192
193 max_victim_search This parameter controls the number of trials to
194 find a victim segment when conducting SSR and
195 cleaning operations. The default value is 4096
196 which covers 8GB block address range.
197
174================================================================================ 198================================================================================
175USAGE 199USAGE
176================================================================================ 200================================================================================