Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36126
b: refs/heads/master
c: 321fb9e
h: refs/heads/master
v: v3
  • Loading branch information
Mingming Cao authored and Linus Torvalds committed Sep 27, 2006
1 parent 8622fd2 commit 86d780d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 37ed322290eb6d5cf2ab33915793ed4219eae1d6
refs/heads/master: 321fb9e81821a81b2cda1328698b0c19d57c717f
12 changes: 8 additions & 4 deletions trunk/fs/ext3/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ read_block_bitmap(struct super_block *sb, unsigned int block_group)
* we could easily switch to that without changing too much
* code.
*/
#if 0
#if 1
static void __rsv_window_dump(struct rb_root *root, int verbose,
const char *fn)
{
Expand All @@ -129,7 +129,7 @@ static void __rsv_window_dump(struct rb_root *root, int verbose,
rsv = list_entry(n, struct ext3_reserve_window_node, rsv_node);
if (verbose)
printk("reservation window 0x%p "
"start: %d, end: %d\n",
"start: %lu, end: %lu\n",
rsv, rsv->rsv_start, rsv->rsv_end);
if (rsv->rsv_start && rsv->rsv_start >= rsv->rsv_end) {
printk("Bad reservation %p (start >= end)\n",
Expand Down Expand Up @@ -236,8 +236,10 @@ void ext3_rsv_window_add(struct super_block *sb,
p = &(*p)->rb_left;
else if (start > this->rsv_end)
p = &(*p)->rb_right;
else
else {
rsv_window_dump(root, 1);
BUG();
}
}

rb_link_node(node, parent, p);
Expand Down Expand Up @@ -1133,8 +1135,10 @@ ext3_try_to_allocate_with_rsv(struct super_block *sb, handle_t *handle,
*count-my_rsv->rsv_end + grp_goal - 1);

if ((my_rsv->rsv_start >= group_first_block + EXT3_BLOCKS_PER_GROUP(sb))
|| (my_rsv->rsv_end < group_first_block))
|| (my_rsv->rsv_end < group_first_block)) {
rsv_window_dump(&EXT3_SB(sb)->s_rsv_window_root, 1);
BUG();
}
ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, grp_goal,
&num, &my_rsv->rsv_window);
if (ret >= 0) {
Expand Down

0 comments on commit 86d780d

Please sign in to comment.