f2fs: optimize the return condition for has_not_enough_free_secs
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 2 Feb 2013 14:53:15 +0000 (23:53 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 11 Feb 2013 22:15:02 +0000 (07:15 +0900)
commitb1f1daf8c72d615b64163e26488d8effeed29b60
treed623c3ed0808ea9c1f4bec9b388844aed6a30a1e
parent5ac206cf4f9aad871aa1f1dd653a3404092db56c
f2fs: optimize the return condition for has_not_enough_free_secs

Instead of evaluating the free_sections and then deciding to return
true/false from that path. We can directly use the evaluation condition
for returning proper value.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/segment.h