Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377610
b: refs/heads/master
c: f4afb4f
h: refs/heads/master
v: v3
  • Loading branch information
Theodore Ts'o committed Jun 6, 2013
1 parent 8b6eaa8 commit cf17273
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f2e09eb15849562aede80ed007658e4504ded26
refs/heads/master: f4afb4f4e3e9af626ad695c87e4f9aaa780b29ec
14 changes: 9 additions & 5 deletions trunk/fs/ext4/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,15 @@ ext4_fsblk_t ext4_count_free_clusters(struct super_block *sb)

static inline int test_root(ext4_group_t a, int b)
{
int num = b;

while (a > num)
num *= b;
return num == a;
while (1) {
if (a < b)
return 0;
if (a == b)
return 1;
if ((a % b) != 0)
return 0;
a = a / b;
}
}

static int ext4_group_sparse(ext4_group_t group)
Expand Down

0 comments on commit cf17273

Please sign in to comment.