]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: revisit the f2fs_gc flow
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 3 Jan 2013 08:55:52 +0000 (17:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 9 Jan 2013 22:42:59 +0000 (07:42 +0900)
commit00eabf17e5efb795d45372d1f60c227ea2ce898c
tree8bee0c5d2c8579721e81ba3d5689837a3d12be46
parent0a4c775a66864ee91148b8f24046a44d63d8e589
f2fs: revisit the f2fs_gc flow

I'd like to revisit the f2fs_gc flow and rewrite as follows.

1. In practical, the nGC parameter of f2fs_gc is meaningless. So, let's
  remove it.
2. Background GC marks victim blocks as dirty one at a time.
3. Foreground GC should do cleaning job until acquiring enough free
  sections. Afterwards, it needs to do checkpoint.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/segment.c