patch-1.3.19 linux/fs/proc/scsi.c

Next file: linux/fs/smbfs/Makefile
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.18/linux/fs/proc/scsi.c linux/fs/proc/scsi.c
@@ -80,6 +80,15 @@
     NULL	    /* permission  */
 };
 
+struct proc_dir_entry proc_scsi = {
+	PROC_SCSI, 4, "scsi",
+	S_IFDIR | S_IRUGO | S_IXUGO, 2, 0, 0,
+	0, &proc_scsi_inode_operations,
+	NULL, NULL,
+	NULL,
+	&proc_root, NULL
+};
+
 struct proc_dir_entry scsi_dir[PROC_SCSI_FILE - PROC_SCSI_SCSI + 3]; 
 struct proc_dir_entry scsi_hba_dir[(PROC_SCSI_LAST - PROC_SCSI_FILE) * 4]; 
 
@@ -158,7 +167,7 @@
     for (; de->name ; de++) {
 	if (!proc_match(len, name, de))
 	    continue;
-	*result = iget(dir->i_sb, de->low_ino);
+	*result = proc_get_inode(dir->i_sb, de->low_ino, de);
 	iput(dir);
 	if (!*result)
 	    return(-ENOENT);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this