diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
commit | b63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch) | |
tree | 0a343ce219e2b8b38a5d702d66032c57b83d9720 /fs/file_table.c | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'fs/file_table.c')
-rw-r--r-- | fs/file_table.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index 931314661..09b28574d 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -176,10 +176,13 @@ int fs_may_remount_ro(struct super_block *sb) 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) goto too_bad; |