patch-2.4.0-test11 linux/fs/file_table.c
Next file: linux/fs/hpfs/namei.c
Previous file: linux/fs/fcntl.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Fri Nov 17 11:36:27 2000
- Orig file:
v2.4.0-test10/linux/fs/file_table.c
- Orig date:
Sun Oct 8 10:50:32 2000
diff -u --recursive --new-file v2.4.0-test10/linux/fs/file_table.c linux/fs/file_table.c
@@ -176,9 +176,12 @@
file_list_lock();
for (p = sb->s_files.next; p != &sb->s_files; p = p->next) {
struct file *file = list_entry(p, struct file, f_list);
- struct inode *inode = file->f_dentry->d_inode;
- if (!inode)
+ struct inode *inode;
+
+ if (!file->f_dentry)
continue;
+
+ inode = file->f_dentry->d_inode;
/* File with pending delete? */
if (inode->i_nlink == 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)