]> 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)
commitfbdf8f28fe08347a5b2958495cf3d2e8608cf407
tree738b26494ab4b9c959398e729caefe16956bee79
parent0d5ae3ad6fb3a169c8093233a85b71e07c1942fc
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