Messages in this thread Patch in this message | | | Date | Mon, 16 Nov 1998 02:55:48 +0000 | From | "Manuel J. Galan" <> | Subject | Re: pre-2.1.129-2 fails compile |
| |
Quick & dirty fix.--- fs/proc/fd.c.old Mon Nov 16 02:52:59 1998 +++ fs/proc/fd.c Mon Nov 16 02:42:31 1998 @@ -21,6 +21,25 @@ static int proc_readfd(struct file *, void *, filldir_t); static int proc_lookupfd(struct inode *, struct dentry *); +/* + * As some entries in /proc are volatile, we want to + * get rid of unused dentries. This could be made + * smarter: we could keep a "volatile" flag in the + * inode to indicate which ones to keep. + */ +static void +proc_delete_dentry(struct dentry * dentry) +{ + d_drop(dentry); +} + +static struct dentry_operations proc_dentry_operations = { + NULL, /* revalidate */ + NULL, /* d_hash */ + NULL, /* d_compare */ + proc_delete_dentry /* d_delete(struct dentry *) */ +}; + static struct file_operations proc_fd_operations = { NULL, /* lseek - default */ NULL, /* read - bad */[unhandled content-type:application/x-pkcs7-signature]
| |