patch-2.1.101 linux/fs/proc/link.c

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

diff -u --recursive --new-file v2.1.100/linux/fs/proc/link.c linux/fs/proc/link.c
@@ -111,10 +111,9 @@
 			goto out_unlock;
 		}
 		default:
-			switch (ino >> 8) {
+			if (ino & PROC_PID_FD_DIR) {
 				struct file * file;
-			case PROC_PID_FD_DIR:
-				ino &= 0xff;
+				ino &= 0x7fff;
 				file = fcheck_task(p, ino);
 				if (!file || !file->f_dentry)
 					goto out_unlock;

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