vfs: remove unused read_vno fs_ops function

This commit is contained in:
Michael Shaw 2024-01-30 22:41:54 -05:00
commit 30774dd58a
3 changed files with 3 additions and 5 deletions

View file

@ -1048,13 +1048,12 @@ struct fs *ext2_init_fs(struct block_device *bdev)
if (!ext2_ops)
goto out;
ext2_ops->open_vno = ext2_open_vno;
ext2_ops->open_dir = ext2_open_dir;
ext2_ops->read = ext2_read_file;
ext2_ops->write = ext2_write_file;
ext2_ops->readdir = ext2_readdir;
ext2_ops->unlink = ext2_unlink;
ext2_ops->open_vno = ext2_open_vno;
ext2_ops->open_dir = ext2_open_dir;
ext2_ops->read_vno = ext2_read_vno;
ret->ops = ext2_ops;

View file

@ -19,7 +19,7 @@ static void vfs_vnode_dealloc(struct vnode *vnode)
{
if (!vnode)
return;
if (vnode->no_free)
return;

View file

@ -122,7 +122,6 @@ struct fs_ops {
int (*readdir)(struct vnode *vnode, struct dirent **dir);
int (*unlink)(struct fs *fs, const char *path); /* change to vno, not path) */
int (*open_vno)(struct fs *vfs, struct vnode *out, ino_t ino_num);
int (*read_vno)(struct fs *vfs, struct vnode *vnode, void *buf, size_t blockno);
int (*open_dir)(struct fs *vfs, struct vnode *out);
};