mufs: rename tree base to root
This commit is contained in:
parent
a88a33ef01
commit
0c284d1ba7
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue