Reference

F2FS File System

F2FS (Flash-Friendly File System) is a Linux file system designed specifically for flash storage like the eMMC and UFS chips in phones. Many Android devices use it on the data partition because its log-structured, flash-aware design improves speed and longevity, and it shapes how Android storage fills and frees.

APIs & internalsAndroid

F2FS File System

Also known as: f2fs android, flash friendly filesystem

F2FS (Flash-Friendly File System) is a Linux file system designed specifically for flash storage like the eMMC and UFS chips in phones. Many Android devices use it on the data partition because its log-structured, flash-aware design improves speed and longevity, and it shapes how Android storage fills and frees.

  • F2FS was created by Samsung and merged into the Linux kernel in 2012, targeting NAND flash devices.
  • It uses a log-structured design that writes sequentially, reducing wear on flash storage chips.
  • F2FS works with the TRIM command so the flash controller knows which freed blocks can be reused.

How F2FS works on flash storage

F2FS is log-structured: instead of overwriting data in place, it writes changes sequentially to clean areas, which suits flash storage because flash must erase whole blocks before rewriting them. This reduces the random small writes that wear flash and slow it down, and it pairs naturally with the TRIM command that tells the storage chip which blocks are no longer in use.

Like ext4, F2FS tracks files with inodes and is a journaling-style file system that protects metadata against crashes. It splits the disk into hot, warm, and cold zones by how often data changes, grouping frequently updated files to keep performance high on eMMC and UFS hardware.

Why storage fills and how cleanup helps

Android storage fills as apps, media, and accumulated junk files claim space on the F2FS data partition. Because F2FS writes new versions to fresh areas, it periodically runs garbage collection to reclaim and compact space freed by deleted files.

When a cleaner removes files, F2FS frees those blocks and, via TRIM, signals the flash controller that the space is reusable, which keeps both free space and write performance healthy over time. Clearing large files and caches directly returns capacity to the device.

Related terms

Keep reading the reference.

Act on it

Guides and tools for this topic.