]> git.sven.stormbind.net Git - sven/exfat-utils.git/blobdiff - fsck/main.c
New upstream version 1.2.5
[sven/exfat-utils.git] / fsck / main.c
index a72d74cf2de8528ee3ca04ab0649e48223dacfe3..cda1965225c259abe482e35a321551b19a82786d 100644 (file)
@@ -33,7 +33,7 @@ uint64_t files_count, directories_count;
 static int nodeck(struct exfat* ef, struct exfat_node* node)
 {
        const cluster_t cluster_size = CLUSTER_SIZE(*ef->sb);
 static int nodeck(struct exfat* ef, struct exfat_node* node)
 {
        const cluster_t cluster_size = CLUSTER_SIZE(*ef->sb);
-       cluster_t clusters = (node->size + cluster_size - 1) / cluster_size;
+       cluster_t clusters = DIV_ROUND_UP(node->size, cluster_size);
        cluster_t c = node->start_cluster;
        int rc = 0;
 
        cluster_t c = node->start_cluster;
        int rc = 0;