f2fs: remain last victim segment number ascending order
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 19 Feb 2016 00:34:38 +0000 (16:34 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 05:39:59 +0000 (21:39 -0800)
commit4ce537763eeb6b9d453f84b70c69c609973ccc1e
tree523de2afa9148b2016ba58f802f93c2595bd4827
parent8060656aa337f7cd34f1818b24417e8a7a00f4a5
f2fs: remain last victim segment number ascending order

This patch avoids to remain inefficient victim segment number selected by
a victim.

For example, if all the dirty segments has same valid blocks, we can get
the victim segments descending order due to keeping wrong last segment number.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c