{
if (fromsize == tosize) { /* e.g., from 512 to 512 */
return blocks;
- } else if (fromsize > tosize) { /* e.g., from 2048 to 512 */
+ }
+
+ if (fromsize > tosize) { /* e.g., from 2048 to 512 */
return blocks * (fromsize / tosize);
- } else { /* e.g., from 256 to 512 */
- /* Protect against broken filesystems... */
- if (fromsize == 0) {
- fromsize = tosize;
- }
- return (blocks + 1) / (tosize / fromsize);
}
+
+ /* e.g., from 256 to 512 */
+ /* Protect against broken filesystems... */
+
+ if (fromsize == 0) {
+ fromsize = tosize;
+ }
+
+ return (blocks + 1) / (tosize / fromsize);
}
/**