From 27cfca1ec98e91261b1a5355d10a8996464b63af Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 17 Mar 1998 22:05:47 +0000 Subject: Look Ma' what I found on my harddisk ... o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ... --- fs/bad_inode.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'fs/bad_inode.c') diff --git a/fs/bad_inode.c b/fs/bad_inode.c index 4d17002ab..71106655b 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c @@ -11,12 +11,14 @@ #include /* - * The follow_symlink operation must dput() the base. + * The follow_link operation is special: it must behave as a no-op + * so that a bad root inode can at least be unmounted. To do this + * we must dput() the base and return the dentry with a dget(). */ -static struct dentry * bad_follow_link(struct inode * ino, struct dentry *base) +static struct dentry * bad_follow_link(struct dentry *dent, struct dentry *base) { dput(base); - return ERR_PTR(-EIO); + return dget(dent); } static int return_EIO(void) @@ -62,7 +64,9 @@ struct inode_operations bad_inode_ops = EIO_ERROR, /* bmap */ EIO_ERROR, /* truncate */ EIO_ERROR, /* permission */ - EIO_ERROR /* smap */ + EIO_ERROR, /* smap */ + EIO_ERROR, /* update_page */ + EIO_ERROR /* revalidate */ }; -- cgit v1.2.3