Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259037
b: refs/heads/master
c: 9d6bf5a
h: refs/heads/master
i:
  259035: ed88c5b
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jul 26, 2011
1 parent 1ef1698 commit cbe6772
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 0c2fd1bfb155947a821fdaeb3c46aa1cfa20ad64
refs/heads/master: 9d6bf5aa177ee7ffdcee2a590ef8a1bf9e8ade87
6 changes: 1 addition & 5 deletions trunk/fs/reiserfs/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,15 +1222,11 @@ void reiserfs_cache_bitmap_metadata(struct super_block *sb,
info->free_count = 0;

while (--cur >= (unsigned long *)bh->b_data) {
int i;

/* 0 and ~0 are special, we can optimize for them */
if (*cur == 0)
info->free_count += BITS_PER_LONG;
else if (*cur != ~0L) /* A mix, investigate */
for (i = BITS_PER_LONG - 1; i >= 0; i--)
if (!reiserfs_test_le_bit(i, cur))
info->free_count++;
info->free_count += BITS_PER_LONG - hweight_long(*cur);
}
}

Expand Down

0 comments on commit cbe6772

Please sign in to comment.