lkml.org 
[lkml]   [2001]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.4.13pre3: &i_mapping used where i_mapping needed
In 2.4.13pre3, mm/filemap.c:mincore_page() sets an address_space
pointer to &inode->i_mapping. This is almost surely an error, because
i_mapping is already a pointer.

A minimal patch is attached.
--
Chip Salzenberg - a.k.a. - <chip@pobox.com>
"We have no fuel on board, plus or minus 8 kilograms." -- NEAR tech

Index: linux/mm/filemap.c
--- linux/mm/filemap.c.old Tue Oct 16 23:29:08 2001
+++ linux/mm/filemap.c Wed Oct 17 00:26:37 2001
@@ -2449,5 +2449,5 @@
{
unsigned char present = 0;
- struct address_space * as = &vma->vm_file->f_dentry->d_inode->i_mapping;
+ struct address_space * as = vma->vm_file->f_dentry->d_inode->i_mapping;
struct page * page, ** hash = page_hash(as, pgoff);
\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.053 / U:2.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site