X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fexfat-utils.git;a=blobdiff_plain;f=fsck%2Fmain.c;h=cda1965225c259abe482e35a321551b19a82786d;hp=a72d74cf2de8528ee3ca04ab0649e48223dacfe3;hb=refs%2Ftags%2Fupstream%2F1.2.5;hpb=62ddc92d38808bea3aba8fe70e3a417197e9d42f diff --git a/fsck/main.c b/fsck/main.c index a72d74c..cda1965 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -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); - 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;