vfs: rename fs_umount to deinit
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
78517526b1
commit
8aa6b6a8b2
2 changed files with 3 additions and 3 deletions
|
|
@ -211,7 +211,7 @@ static int init(int flags, inode_t *inode, fs_t **out)
|
|||
return ramfs_create(flags, out);
|
||||
}
|
||||
|
||||
static int umount(fs_t *fs)
|
||||
static int deinit(fs_t *fs)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -236,7 +236,7 @@ void ramfs_init(void)
|
|||
ramfs_inode_ops->unlink = unlink;
|
||||
ramfs_inode_ops->get_dents = get_dents;
|
||||
|
||||
struct fs_driver ramfs_type = {.name = "ramfs", .init = init, .fs_umount = umount};
|
||||
struct fs_driver ramfs_type = {.name = "ramfs", .init = init, .deinit = deinit};
|
||||
|
||||
vfs_register(&ramfs_type);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
struct fs_driver {
|
||||
char name[256];
|
||||
int (*init)(int flags, inode_t *inode, fs_t **out);
|
||||
int (*fs_umount)(fs_t *fs);
|
||||
int (*deinit)(fs_t *fs);
|
||||
};
|
||||
|
||||
struct fs_ops {
|
||||
|
|
|
|||
Loading…
Reference in a new issue