OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use DIV_ROUND_UP macro.
[android-x86/external-exfat.git]
/
fsck
/
main.c
diff --git
a/fsck/main.c
b/fsck/main.c
index
a72d74c
..
cda1965
100644
(file)
--- 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);
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;