Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105845
b: refs/heads/master
c: 9ebfbe9
h: refs/heads/master
i:
  105843: 15658fe
v: v3
  • Loading branch information
Shen Feng authored and Linus Torvalds committed Jul 25, 2008
1 parent 08bd335 commit 442ae0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 1984bb763c2e50d0ebfb0cf56d1b319bd7afe63a
refs/heads/master: 9ebfbe9f926553eabc21b4400918d1216b27ed0c
14 changes: 4 additions & 10 deletions trunk/fs/ext3/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static void free_rb_tree_fname(struct rb_root *root)

while (n) {
/* Do the node's children first */
if ((n)->rb_left) {
if (n->rb_left) {
n = n->rb_left;
continue;
}
Expand Down Expand Up @@ -301,24 +301,18 @@ static void free_rb_tree_fname(struct rb_root *root)
parent->rb_right = NULL;
n = parent;
}
root->rb_node = NULL;
}


static struct dir_private_info *create_dir_info(loff_t pos)
static struct dir_private_info *ext3_htree_create_dir_info(loff_t pos)
{
struct dir_private_info *p;

p = kmalloc(sizeof(struct dir_private_info), GFP_KERNEL);
p = kzalloc(sizeof(struct dir_private_info), GFP_KERNEL);
if (!p)
return NULL;
p->root.rb_node = NULL;
p->curr_node = NULL;
p->extra_fname = NULL;
p->last_pos = 0;
p->curr_hash = pos2maj_hash(pos);
p->curr_minor_hash = pos2min_hash(pos);
p->next_hash = 0;
return p;
}

Expand Down Expand Up @@ -433,7 +427,7 @@ static int ext3_dx_readdir(struct file * filp,
int ret;

if (!info) {
info = create_dir_info(filp->f_pos);
info = ext3_htree_create_dir_info(filp->f_pos);
if (!info)
return -ENOMEM;
filp->private_data = info;
Expand Down

0 comments on commit 442ae0c

Please sign in to comment.