lib: fs: add library for implementing a filesystem service
This commit is contained in:
11
lib/libfs/superblock.c
Normal file
11
lib/libfs/superblock.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <fs/superblock.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct fs_inode *fs_superblock_alloc_inode(struct fs_superblock *sb)
|
||||
{
|
||||
if (!sb->s_ops->s_alloc_inode) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sb->s_ops->s_alloc_inode(sb);
|
||||
}
|
||||
Reference in New Issue
Block a user