diff options
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/ABI/testing/sysfs-fs-f2fs | 23 | ||||
| -rw-r--r-- | Documentation/filesystems/f2fs.rst | 17 | 
2 files changed, 36 insertions, 4 deletions
diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs b/Documentation/ABI/testing/sysfs-fs-f2fs index ef4b9218ae1e..f627e705e663 100644 --- a/Documentation/ABI/testing/sysfs-fs-f2fs +++ b/Documentation/ABI/testing/sysfs-fs-f2fs @@ -41,8 +41,7 @@ Description:	This parameter controls the number of prefree segments to be  What:		/sys/fs/f2fs/<disk>/main_blkaddr  Date:		November 2019  Contact:	"Ramon Pantin" <pantin@google.com> -Description: -		 Shows first block address of MAIN area. +Description:	Shows first block address of MAIN area.  What:		/sys/fs/f2fs/<disk>/ipu_policy  Date:		November 2013 @@ -493,3 +492,23 @@ Contact:	"Chao Yu" <yuchao0@huawei.com>  Description:	When ATGC is on, it controls age threshold to bypass GCing young  		candidates whose age is not beyond the threshold, by default it was  		initialized as 604800 seconds (equals to 7 days). + +What:		/sys/fs/f2fs/<disk>/gc_reclaimed_segments +Date:		July 2021 +Contact:	"Daeho Jeong" <daehojeong@google.com> +Description:	Show how many segments have been reclaimed by GC during a specific +		GC mode (0: GC normal, 1: GC idle CB, 2: GC idle greedy, +		3: GC idle AT, 4: GC urgent high, 5: GC urgent low) +		You can re-initialize this value to "0". + +What:		/sys/fs/f2fs/<disk>/gc_segment_mode +Date:		July 2021 +Contact:	"Daeho Jeong" <daehojeong@google.com> +Description:	You can control for which gc mode the "gc_reclaimed_segments" node shows. +		Refer to the description of the modes in "gc_reclaimed_segments". + +What:		/sys/fs/f2fs/<disk>/seq_file_ra_mul +Date:		July 2021 +Contact:	"Daeho Jeong" <daehojeong@google.com> +Description:	You can	control the multiplier value of	bdi device readahead window size +		between 2 (default) and 256 for POSIX_FADV_SEQUENTIAL advise option. diff --git a/Documentation/filesystems/f2fs.rst b/Documentation/filesystems/f2fs.rst index ff9e7cc97c65..09de6ebbbdfa 100644 --- a/Documentation/filesystems/f2fs.rst +++ b/Documentation/filesystems/f2fs.rst @@ -185,6 +185,7 @@ fault_type=%d		 Support configuring fault injection type, should be  			 FAULT_KVMALLOC		  0x000000002  			 FAULT_PAGE_ALLOC	  0x000000004  			 FAULT_PAGE_GET		  0x000000008 +			 FAULT_ALLOC_BIO	  0x000000010 (obsolete)  			 FAULT_ALLOC_NID	  0x000000020  			 FAULT_ORPHAN		  0x000000040  			 FAULT_BLOCK		  0x000000080 @@ -195,6 +196,7 @@ fault_type=%d		 Support configuring fault injection type, should be  			 FAULT_CHECKPOINT	  0x000001000  			 FAULT_DISCARD		  0x000002000  			 FAULT_WRITE_IO		  0x000004000 +			 FAULT_SLAB_ALLOC	  0x000008000  			 ===================	  ===========  mode=%s			 Control block allocation mode which supports "adaptive"  			 and "lfs". In "lfs" mode, there should be no random @@ -312,6 +314,14 @@ inlinecrypt		 When possible, encrypt/decrypt the contents of encrypted  			 Documentation/block/inline-encryption.rst.  atgc			 Enable age-threshold garbage collection, it provides high  			 effectiveness and efficiency on background GC. +discard_unit=%s		 Control discard unit, the argument can be "block", "segment" +			 and "section", issued discard command's offset/size will be +			 aligned to the unit, by default, "discard_unit=block" is set, +			 so that small discard functionality is enabled. +			 For blkzoned device, "discard_unit=section" will be set by +			 default, it is helpful for large sized SMR or ZNS devices to +			 reduce memory cost by getting rid of fs metadata supports small +			 discard.  ======================== ============================================================  Debugfs Entries @@ -857,8 +867,11 @@ Compression implementation    directly in order to guarantee potential data updates later to the space.    Instead, the main goal is to reduce data writes to flash disk as much as    possible, resulting in extending disk life time as well as relaxing IO -  congestion. Alternatively, we've added ioctl interface to reclaim compressed -  space and show it to user after putting the immutable bit. +  congestion. Alternatively, we've added ioctl(F2FS_IOC_RELEASE_COMPRESS_BLOCKS) +  interface to reclaim compressed space and show it to user after putting the +  immutable bit. Immutable bit, after release, it doesn't allow writing/mmaping +  on the file, until reserving compressed space via +  ioctl(F2FS_IOC_RESERVE_COMPRESS_BLOCKS) or truncating filesize to zero.  Compress metadata layout::  | 
