mm/memory.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN mm/memory.c~do_no_page-debug mm/memory.c
--- 25/mm/memory.c~do_no_page-debug	2003-09-15 17:41:04.000000000 -0700
+++ 25-akpm/mm/memory.c	2003-09-15 17:41:58.000000000 -0700
@@ -1398,6 +1398,7 @@ do_no_page(struct mm_struct *mm, struct 
 	spin_unlock(&mm->page_table_lock);
 
 	if (vma->vm_file) {
+		WARN_ON(!atomic_read(&vma->vm_file->f_count));
 		mapping = vma->vm_file->f_dentry->d_inode->i_mapping;
 		sequence = atomic_read(&mapping->truncate_count);
 	}

_