]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/f2fs/segment.h
f2fs: optimize the return condition for has_not_enough_free_secs
[linux.git] / fs / f2fs / segment.h
index a9417b94d6bc3a52ff4870b8998211f009cf32ac..458bf5c726f7e20955b06bd40888140f61075185 100644 (file)
@@ -464,10 +464,8 @@ static inline bool has_not_enough_free_secs(struct f2fs_sb_info *sbi)
        if (sbi->por_doing)
                return false;
 
-       if (free_sections(sbi) <= (node_secs + 2 * dent_secs +
-                                               reserved_sections(sbi)))
-               return true;
-       return false;
+       return (free_sections(sbi) <= (node_secs + 2 * dent_secs +
+                                               reserved_sections(sbi)));
 }
 
 static inline int utilization(struct f2fs_sb_info *sbi)