Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat_ent.c21 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)inode->sb->private_sb_info; in fat32_alloc_clusters()
23 struct block_device *blk = inode->sb->blk_device; in fat32_alloc_clusters()
64 inode->sb->sb_ops->write_inode(inode); in fat32_alloc_clusters()
191 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)parent_inode->sb->private_sb_info; in fat32_find_empty_dentry()
195 struct block_device *blk = parent_inode->sb->blk_device; in fat32_find_empty_dentry()
436 struct vfs_superblock_t *sb = dir->sb; in fat32_remove_entries() local
438 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)sb->private_sb_info; in fat32_remove_entries()
456sb->blk_device->bd_disk->fops->transfer(sb->blk_device->bd_disk, AHCI_CMD_WRITE_DMA_EXT, sinfo->i_… in fat32_remove_entries()
466 next_clus = fat32_read_FAT_entry(sb->blk_device, fsbi, data_cluster); in fat32_remove_entries()
469 retval = fat32_write_FAT_entry(sb->blk_device, fsbi, data_cluster, 0); in fat32_remove_entries()
Dfat32.c60 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)parent_inode->sb->private_sb_info; in __fat32_search_long_short()
61 struct block_device *blk = parent_inode->sb->blk_device; in __fat32_search_long_short()
319 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)parent_inode->sb->private_sb_info; in fat32_lookup()
335 p->sb = parent_inode->sb; in fat32_lookup()
434 sb_ptr->root->dir_inode->sb = sb_ptr; // 反向绑定对应的超级块 in fat32_read_superblock()
457 void fat32_write_superblock(struct vfs_superblock_t *sb) in fat32_write_superblock() argument
466 void fat32_put_superblock(struct vfs_superblock_t *sb) in fat32_put_superblock() argument
468 kfree(sb->private_sb_info); in fat32_put_superblock()
469 kfree(sb->root->dir_inode->private_inode_info); in fat32_put_superblock()
470 kfree(sb->root->dir_inode); in fat32_put_superblock()
[all …]
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c52 static void procfs_write_superblock(struct vfs_superblock_t *sb) in procfs_write_superblock() argument
56 static void procfs_put_superblock(struct vfs_superblock_t *sb) in procfs_put_superblock() argument
357 inode->sb = parent_inode->sb; in procfs_create()
398 inode->sb = parent_inode->sb; in procfs_mkdir()
426 procfs_root_dentry->dir_inode->sb = &procfs_sb; in __procfs_init_root_inode()
/DragonOS-0.1.2/docs/kernel/filesystem/vfs/
Doverview.md119 void (*write_superblock)(struct vfs_superblock_t *sb);
120 void (*put_superblock)(struct vfs_superblock_t *sb);
156 struct vfs_superblock_t *sb;
182 **sb**
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.h79 struct vfs_superblock_t *sb; member
123 void (*write_superblock)(struct vfs_superblock_t *sb); // 将超级块信息写入磁盘
124 void (*put_superblock)(struct vfs_superblock_t *sb);
DVFS.c45 struct vfs_superblock_t *sb = p->read_superblock(blk); in vfs_mount_fs() local
48 vfs_root_sb = sb; in vfs_mount_fs()
54 struct vfs_dir_entry_t *new_dentry = sb->root; in vfs_mount_fs()
61 return sb; in vfs_mount_fs()
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Ddevfs.c46 static void devfs_write_superblock(struct vfs_superblock_t *sb) { return; } in devfs_write_superblock() argument
48 static void devfs_put_superblock(struct vfs_superblock_t *sb) { return; } in devfs_put_superblock() argument
165 dEntry->dir_inode->sb = &devfs_sb; in devfs_mkdir()
200 devfs_root_dentry->dir_inode->sb = &devfs_sb; in __devfs_init_root_inode()
Dinternal.h79 dentry->dir_inode->sb = &devfs_sb; in __devfs_fill_inode()
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c152 dentry->dir_inode->sb = &rootfs_sb; in rootfs_init()