]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix equation of has_not_enough_free_secs()
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 21 Dec 2012 08:20:21 +0000 (17:20 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 28 Dec 2012 02:24:10 +0000 (11:24 +0900)
commitfae334d72e7d4f8851612f01ffb2003a61a096a4
tree738b26494ab4b9c959398e729caefe16956bee79
parent95b9cd7d3867a52cf614ca16e9c65fd9c7082edb
f2fs: fix equation of has_not_enough_free_secs()

Practically, has_not_enough_free_secs() should calculate with the numbers of
current node and directory data blocks together.
Actually the equation was implemented in need_to_flush().

So, this patch removes need_flush() and moves the equation into
has_not_enough_free_secs().

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