Skip to content
Snippets Groups Projects
Commit 69daf614 authored by Avi Kivity's avatar Avi Kivity
Browse files

file: drop file_makebad()


The only caller, soo_close() can only be called from a context where
no file references remain, so no further file API calls can be made.

Remove it.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent adc3da8e
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,6 @@ soo_close(struct file *fp)
struct socket *so;
so = file_data(fp);
file_makebad(fp);
if (so)
error = soclose(so);
......
......@@ -229,12 +229,6 @@ file::~file()
}
}
void file_makebad(struct file *fp)
{
fp->f_ops = &badfileops;
fp->f_data = NULL;
}
dentry* file_dentry(file* fp)
{
return fp->f_dentry;
......
......@@ -140,7 +140,6 @@ filetype_t file_type(struct file *fp);
void* file_data(struct file *fp);
void file_setdata(struct file *fp, void *data);
int file_flags(struct file *fp);
void file_makebad(struct file *fp);
struct dentry* file_dentry(struct file *fp);
off_t file_offset(struct file *fp);
void file_setoffset(struct file *fp, off_t off);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment