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)
commit029cd28c1f739bbfc5105035696d5f1f4e45d161
tree738b26494ab4b9c959398e729caefe16956bee79
parentf58ad8f51a5a0f34c8d41ffc065e0f1c896c991c
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