From 8aa6b6a8b2ee94ce7fd5da5455e339ac52c02620 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sun, 5 Jul 2026 23:09:31 +0200 Subject: [PATCH] vfs: rename `fs_umount` to `deinit` Signed-off-by: Michael Shaw --- fs/vfs/ramfs.c | 4 ++-- include/fs/vfs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/vfs/ramfs.c b/fs/vfs/ramfs.c index b5dcac6..b620ba7 100644 --- a/fs/vfs/ramfs.c +++ b/fs/vfs/ramfs.c @@ -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); } diff --git a/include/fs/vfs.h b/include/fs/vfs.h index 1817a1e..0880061 100644 --- a/include/fs/vfs.h +++ b/include/fs/vfs.h @@ -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 {