summaryrefslogtreecommitdiffstats
path: root/kernel/fs/hfs/bnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/hfs/bnode.c')
-rw-r--r--kernel/fs/hfs/bnode.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/fs/hfs/bnode.c b/kernel/fs/hfs/bnode.c
index d3fa6bd95..221719eac 100644
--- a/kernel/fs/hfs/bnode.c
+++ b/kernel/fs/hfs/bnode.c
@@ -288,7 +288,6 @@ static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid)
page_cache_release(page);
goto fail;
}
- page_cache_release(page);
node->page[i] = page;
}
@@ -398,11 +397,11 @@ node_error:
void hfs_bnode_free(struct hfs_bnode *node)
{
- //int i;
+ int i;
- //for (i = 0; i < node->tree->pages_per_bnode; i++)
- // if (node->page[i])
- // page_cache_release(node->page[i]);
+ for (i = 0; i < node->tree->pages_per_bnode; i++)
+ if (node->page[i])
+ page_cache_release(node->page[i]);
kfree(node);
}