diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/sysfs-fs-f2fs | 31 | ||||
-rw-r--r-- | Documentation/filesystems/f2fs.txt | 24 |
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 | |||
24 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> | 24 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
25 | Description: | 25 | Description: |
26 | Controls the victim selection policy for garbage collection. | 26 | Controls the victim selection policy for garbage collection. |
27 | |||
28 | What: /sys/fs/f2fs/<disk>/reclaim_segments | ||
29 | Date: October 2013 | ||
30 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> | ||
31 | Description: | ||
32 | Controls the issue rate of segment discard commands. | ||
33 | |||
34 | What: /sys/fs/f2fs/<disk>/ipu_policy | ||
35 | Date: November 2013 | ||
36 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> | ||
37 | Description: | ||
38 | Controls the in-place-update policy. | ||
39 | |||
40 | What: /sys/fs/f2fs/<disk>/min_ipu_util | ||
41 | Date: November 2013 | ||
42 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> | ||
43 | Description: | ||
44 | Controls the FS utilization condition for the in-place-update | ||
45 | policies. | ||
46 | |||
47 | What: /sys/fs/f2fs/<disk>/max_small_discards | ||
48 | Date: November 2013 | ||
49 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> | ||
50 | Description: | ||
51 | Controls the issue rate of small discard commands. | ||
52 | |||
53 | What: /sys/fs/f2fs/<disk>/max_victim_search | ||
54 | Date: January 2014 | ||
55 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> | ||
56 | Description: | ||
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 | |||
120 | disable_ext_identify Disable the extension list configured by mkfs, so f2fs | 120 | disable_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. |
122 | inline_xattr Enable the inline xattrs feature. | 122 | inline_xattr Enable the inline xattrs feature. |
123 | inline_data Enable the inline data feature: New created small(<~3.4k) | ||
124 | files can be written into inode block. | ||
123 | 125 | ||
124 | ================================================================================ | 126 | ================================================================================ |
125 | DEBUGFS ENTRIES | 127 | DEBUGFS 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 | ================================================================================ |
175 | USAGE | 199 | USAGE |
176 | ================================================================================ | 200 | ================================================================================ |