patch-2.1.97 linux/fs/proc/inode.c

Next file: linux/fs/proc/openpromfs.c
Previous file: linux/fs/binfmt_aout.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -70,6 +70,13 @@
 static void proc_delete_inode(struct inode *inode)
 {
 	struct proc_dir_entry *de = inode->u.generic_ip;
+
+#if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE)
+	if ((inode->i_ino >= PROC_OPENPROM_FIRST) &&
+	    (inode->i_ino <  PROC_OPENPROM_FIRST + PROC_NOPENPROM))
+		return;
+#endif	
+
 	if (de) {
 		/*
 		 * Call the fill_inode hook to release module counts.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov