Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11855
b: refs/heads/master
c: 5b11687
h: refs/heads/master
i:
  11853: d91868c
  11851: 83ee250
  11847: c301cee
  11839: c30a76a
v: v3
  • Loading branch information
Glauber de Oliveira Costa authored and Linus Torvalds committed Oct 31, 2005
1 parent 87ff7ea commit 77fd292
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 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: 2384f55f8aa520172c995965bd2f8a9740d53095
refs/heads/master: 5b11687924e40790deb0d5f959247ade82196665
5 changes: 2 additions & 3 deletions trunk/fs/ext3/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ static int alloc_new_reservation(struct ext3_reserve_window_node *my_rsv,
* allocation within the reservation window.
*
* This will avoid keeping on searching the reservation list again and
* again when someboday is looking for a free block (without
* again when somebody is looking for a free block (without
* reservation), and there are lots of free blocks, but they are all
* being reserved.
*
Expand Down Expand Up @@ -1416,12 +1416,12 @@ unsigned long ext3_count_free_blocks(struct super_block *sb)
unsigned long bitmap_count, x;
struct buffer_head *bitmap_bh = NULL;

lock_super(sb);
es = EXT3_SB(sb)->s_es;
desc_count = 0;
bitmap_count = 0;
gdp = NULL;

smp_rmb();
for (i = 0; i < ngroups; i++) {
gdp = ext3_get_group_desc(sb, i, NULL);
if (!gdp)
Expand All @@ -1440,7 +1440,6 @@ unsigned long ext3_count_free_blocks(struct super_block *sb)
brelse(bitmap_bh);
printk("ext3_count_free_blocks: stored = %u, computed = %lu, %lu\n",
le32_to_cpu(es->s_free_blocks_count), desc_count, bitmap_count);
unlock_super(sb);
return bitmap_count;
#else
desc_count = 0;
Expand Down
2 changes: 0 additions & 2 deletions trunk/fs/ext3/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ unsigned long ext3_count_free_inodes (struct super_block * sb)
unsigned long bitmap_count, x;
struct buffer_head *bitmap_bh = NULL;

lock_super (sb);
es = EXT3_SB(sb)->s_es;
desc_count = 0;
bitmap_count = 0;
Expand All @@ -727,7 +726,6 @@ unsigned long ext3_count_free_inodes (struct super_block * sb)
brelse(bitmap_bh);
printk("ext3_count_free_inodes: stored = %u, computed = %lu, %lu\n",
le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count);
unlock_super(sb);
return desc_count;
#else
desc_count = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ static unsigned long ext3_find_goal(struct inode *inode, long block,
* the same format as ext3_get_branch() would do. We are calling it after
* we had read the existing part of chain and partial points to the last
* triple of that (one with zero ->key). Upon the exit we have the same
* picture as after the successful ext3_get_block(), excpet that in one
* picture as after the successful ext3_get_block(), except that in one
* place chain is disconnected - *branch->p is still zero (we did not
* set the last link), but branch->key contains the number that should
* be placed into *branch->p to fill that gap.
Expand Down

0 comments on commit 77fd292

Please sign in to comment.