mufs: rename tree base to root

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent a88a33ef01
commit 0c284d1ba7
  1. 6
      source/fs/mufs/tree.c
  2. 2
      source/fs/mufs/tree.h

@ -41,13 +41,13 @@ static int mufs_do_lookup(struct mufs *fs, uint32_t *page,
int mufs_lookup_page(struct mufs *fs, struct mufs_tree *tree, uint32_t *page, int mufs_lookup_page(struct mufs *fs, struct mufs_tree *tree, uint32_t *page,
uint32_t va) uint32_t va)
{ {
return mufs_do_lookup(fs, page, tree->base, tree->depth, va, 0); return mufs_do_lookup(fs, page, tree->root, tree->depth, va, 0);
} }
int mufs_alloc_page(struct mufs *fs, struct mufs_tree *tree, uint32_t *page, int mufs_alloc_page(struct mufs *fs, struct mufs_tree *tree, uint32_t *page,
uint32_t va) uint32_t va)
{ {
return mufs_do_lookup(fs, page, tree->base, tree->depth, va, 1); return mufs_do_lookup(fs, page, tree->root, tree->depth, va, 1);
} }
static int mufs_do_free_page(struct mufs *fs, uint32_t base, static int mufs_do_free_page(struct mufs *fs, uint32_t base,
@ -93,5 +93,5 @@ static int mufs_do_free_page(struct mufs *fs, uint32_t base,
void mufs_free_page(struct mufs *fs, struct mufs_tree *tree, uint32_t va) void mufs_free_page(struct mufs *fs, struct mufs_tree *tree, uint32_t va)
{ {
mufs_do_free_page(fs, tree->base, tree->depth, va); mufs_do_free_page(fs, tree->root, tree->depth, va);
} }

@ -1,7 +1,7 @@
#pragma once #pragma once
struct mufs_tree { struct mufs_tree {
uint32_t base; uint32_t root;
uint8_t depth; uint8_t depth;
}; };

Loading…
Cancel
Save