vfs: remove unused read_vno fs_ops function
This commit is contained in:
parent
a75cf5b5c6
commit
30774dd58a
3 changed files with 3 additions and 5 deletions
|
|
@ -1048,13 +1048,12 @@ struct fs *ext2_init_fs(struct block_device *bdev)
|
||||||
if (!ext2_ops)
|
if (!ext2_ops)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
ext2_ops->open_vno = ext2_open_vno;
|
||||||
|
ext2_ops->open_dir = ext2_open_dir;
|
||||||
ext2_ops->read = ext2_read_file;
|
ext2_ops->read = ext2_read_file;
|
||||||
ext2_ops->write = ext2_write_file;
|
ext2_ops->write = ext2_write_file;
|
||||||
ext2_ops->readdir = ext2_readdir;
|
ext2_ops->readdir = ext2_readdir;
|
||||||
ext2_ops->unlink = ext2_unlink;
|
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;
|
ret->ops = ext2_ops;
|
||||||
|
|
||||||
|
|
|
||||||
2
fs/vfs.c
2
fs/vfs.c
|
|
@ -19,7 +19,7 @@ static void vfs_vnode_dealloc(struct vnode *vnode)
|
||||||
{
|
{
|
||||||
if (!vnode)
|
if (!vnode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (vnode->no_free)
|
if (vnode->no_free)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,6 @@ struct fs_ops {
|
||||||
int (*readdir)(struct vnode *vnode, struct dirent **dir);
|
int (*readdir)(struct vnode *vnode, struct dirent **dir);
|
||||||
int (*unlink)(struct fs *fs, const char *path); /* change to vno, not path) */
|
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 (*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);
|
int (*open_dir)(struct fs *vfs, struct vnode *out);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue