Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319931
b: refs/heads/master
c: 10d4708
h: refs/heads/master
i:
  319929: 7d70b06
  319927: f5d11db
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jul 31, 2012
1 parent 81df534 commit f148c75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 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: ecd0afa3ced0ebf36901b53fd9ee431f8a34a161
refs/heads/master: 10d470849a7c6dd360e8ad4770160ad7af9adb4b
2 changes: 1 addition & 1 deletion trunk/fs/ext3/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ ext3_fsblk_t ext3_count_free_blocks(struct super_block *sb)
brelse(bitmap_bh);
printk("ext3_count_free_blocks: stored = "E3FSBLK
", computed = "E3FSBLK", "E3FSBLK"\n",
le32_to_cpu(es->s_free_blocks_count),
(ext3_fsblk_t)le32_to_cpu(es->s_free_blocks_count),
desc_count, bitmap_count);
return bitmap_count;
#else
Expand Down
12 changes: 1 addition & 11 deletions trunk/fs/ext3/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,9 @@

#ifdef EXT3FS_DEBUG

static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};

unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
{
unsigned int i;
unsigned long sum = 0;

if (!map)
return (0);
for (i = 0; i < numchars; i++)
sum += nibblemap[map->b_data[i] & 0xf] +
nibblemap[(map->b_data[i] >> 4) & 0xf];
return (sum);
return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars);
}

#endif /* EXT3FS_DEBUG */
Expand Down

0 comments on commit f148c75

Please sign in to comment.