OSDN Git Service

f2fs: Add option to limit required GC for checkpoint=disable
authorDaniel Rosenberg <drosen@google.com>
Thu, 30 May 2019 00:49:06 +0000 (17:49 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 14 Jun 2019 03:38:14 +0000 (20:38 -0700)
commit1466266b08111085932a0f0e155af3d677b0035e
tree8f62b20198f5e9b2b8810aa7889b20937faa63ee
parentd36eb2bf500f2efea1b71b2ed30041dfc20c98c7
f2fs: Add option to limit required GC for checkpoint=disable

This extends the checkpoint option to allow checkpoint=disable:%u[%]
This allows you to specify what how much of the disk you are willing
to lose access to while mounting with checkpoint=disable. If the amount
lost would be higher, the mount will return -EAGAIN. This can be given
as a percent of total space, or in blocks.

Currently, we need to run garbage collection until the amount of holes
is smaller than the OVP space. With the new option, f2fs can mark
space as unusable up front instead of requiring garbage collection until
the number of holes is small enough.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
Documentation/filesystems/f2fs.txt
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c
fs/f2fs/sysfs.c