Lines Matching refs:dir_inode

358     dest_dentry->dir_inode = p;  in fat32_lookup()
426 sb_ptr->root->dir_inode = vfs_alloc_inode(); in fat32_read_superblock()
427 sb_ptr->root->dir_inode->inode_ops = &fat32_inode_ops; in fat32_read_superblock()
428 sb_ptr->root->dir_inode->file_ops = &fat32_file_ops; in fat32_read_superblock()
429 sb_ptr->root->dir_inode->file_size = 0; in fat32_read_superblock()
431 sb_ptr->root->dir_inode->blocks = in fat32_read_superblock()
432 (sb_ptr->root->dir_inode->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_read_superblock()
433 sb_ptr->root->dir_inode->attribute = VFS_IF_DIR; in fat32_read_superblock()
434 sb_ptr->root->dir_inode->sb = sb_ptr; // 反向绑定对应的超级块 in fat32_read_superblock()
437 sb_ptr->root->dir_inode->private_inode_info = kmalloc(sizeof(struct fat32_inode_info_t), 0); in fat32_read_superblock()
438 memset(sb_ptr->root->dir_inode->private_inode_info, 0, sizeof(struct fat32_inode_info_t)); in fat32_read_superblock()
439 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)sb_ptr->root->dir_inode->private_… in fat32_read_superblock()
469 kfree(sb->root->dir_inode->private_inode_info); in fat32_put_superblock()
470 kfree(sb->root->dir_inode); in fat32_put_superblock()
576 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)(file_ptr->dEntry->dir_inode->pri… in fat32_read()
577 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)(file_ptr->dEntry->dir_inode->sb->private_sb_info); in fat32_read()
578 struct block_device *blk = file_ptr->dEntry->dir_inode->sb->blk_device; in fat32_read()
600 if (*position + count > file_ptr->dEntry->dir_inode->file_size) in fat32_read()
601 count = file_ptr->dEntry->dir_inode->file_size - *position; in fat32_read()
664 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)file_ptr->dEntry->dir_inode->priv… in fat32_write()
665 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)(file_ptr->dEntry->dir_inode->sb->private_sb_info); in fat32_write()
666 struct block_device *blk = file_ptr->dEntry->dir_inode->sb->blk_device; in fat32_write()
680 if (fat32_alloc_clusters(file_ptr->dEntry->dir_inode, &cluster, 1) != 0) in fat32_write()
757 if (fat32_alloc_clusters(file_ptr->dEntry->dir_inode, &next_clus, 1) != 0) in fat32_write()
771 if (*position > (file_ptr->dEntry->dir_inode->file_size)) in fat32_write()
773 file_ptr->dEntry->dir_inode->file_size = *position; in fat32_write()
774 file_ptr->dEntry->dir_inode->sb->sb_ops->write_inode(file_ptr->dEntry->dir_inode); in fat32_write()
795 struct vfs_index_node_t *inode = file_ptr->dEntry->dir_inode; in fat32_lseek()
807 pos = file_ptr->dEntry->dir_inode->file_size + offset; in fat32_lseek()
815 if (pos < 0 || pos > file_ptr->dEntry->dir_inode->file_size) in fat32_lseek()
863 if (dest_dEntry->dir_inode != NULL) in fat32_create()
867 dest_dEntry->dir_inode = inode; in fat32_create()
936 dest_dEntry->dir_inode = NULL; in fat32_create()
1003 dEntry->dir_inode = inode; in fat32_mkdir()
1125 struct vfs_index_node_t *inode_to_remove = dentry->dir_inode; in fat32_unlink()
1139 retval = fat32_detach_inode(dentry->dir_inode); in fat32_unlink()
1159 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)file_ptr->dEntry->dir_inode->priv… in fat32_readdir()
1160 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)file_ptr->dEntry->dir_inode->sb->private_sb_info; in fat32_readdir()
1161 struct block_device *blk = file_ptr->dEntry->dir_inode->sb->blk_device; in fat32_readdir()