ext2: remove unused ext2_read_vno
This commit is contained in:
parent
5217f9b199
commit
78c3474c10
1 changed files with 0 additions and 15 deletions
15
fs/ext2.c
15
fs/ext2.c
|
|
@ -987,21 +987,6 @@ static int ext2_open_dir(struct fs *vfs, struct vnode *vnode)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ext2_read_vno(struct fs *vfs, struct vnode *vnode, void *buf, size_t blockno)
|
||||
{
|
||||
struct ext2fs *fs = (struct ext2fs *)vfs->fs;
|
||||
struct ext2_inode inode;
|
||||
|
||||
int res = ext2_read_inode(fs, &inode, vnode->ino_num);
|
||||
if (res < 0)
|
||||
return res;
|
||||
|
||||
if ((inode.mode & 0xF000) != EXT2_INO_REG)
|
||||
return -EISDIR;
|
||||
|
||||
return ext2_inode_read_block(fs, (struct ext2_inode *)&inode, buf, blockno);
|
||||
}
|
||||
|
||||
struct fs *ext2_init_fs(struct block_device *bdev)
|
||||
{
|
||||
struct ext2fs *extfs = kmalloc(sizeof(*extfs), ALLOC_KERN);
|
||||
|
|
|
|||
Loading…
Reference in a new issue