[原创] f2fs文件系统源代码分析 —— 基于3.8内核 (一)

时间:2023-03-08 20:53:41

作者:高翔 <esxgx@163.com>
本文著作权归作者所有,请在转载引用时保留原文网址。

在全文开始,首先记录f2fs被3.8主线merge的mailing list:
[GIT PULL] f2fs: request for tree inclusion
https://lkml.org/lkml/2012/12/15/156
让我们来看看这一个提交都有哪些内容
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a13eea6bd9ee62ceacfc5243d54c84396bc86cb4
更详尽的提交记录
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/fs/f2fs?id=a13eea6bd9ee62ceacfc5243d54c84396bc86cb4
一堆名词:
f2fs文件系统代码中倾向采用一些罕见的缩写,且少有注释,经过考据,这里做一次全面的列举:
LFS —— writes data sequentially with cleaning operations.
SSR —— Slack Space Recycle,reuses obsolete space without cleaning operations
POR —— power-off-recovery
SPOR —— sudden power-off recovery
IPU —— in-place update