Re: Performance of ext4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aneesh Kumar K.V
Date: Friday, June 27, 2008 - 10:35 am

On Fri, Jun 27, 2008 at 12:00:24PM +0200, Jan Kara wrote:

How about this ?

commit 174d555d8effb480a23d5dea8db698d1bc2cfa7d
Author: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Date:   Fri Jun 27 23:04:28 2008 +0530

    ext4: call ext4_page_mkwrite even for MappedToDisk pages
    
    We can have pages that are fully mapped to disk. The
    mappedtodisk flag is used to indicate that every
    buffer_head in the page have a mapping block allocated
    on disk. But that doesn't gurantee that we have initialized
    those buffer_head and added it to page via page->private.
    This causes writepage to go BUGON when it find a page
    that have NULL page->private.
    
    The fix is to make sure we initialize the buffer_head and add
    it to page when we are going to write to the page. This can
    be done via ext4_page_mkwrite
    
    Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 10f1d5d..11ebe88 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3978,8 +3978,6 @@ int ext4_page_mkwrite(struct vm_area_struct *vma, struct page *page)
 		goto out_unlock;
 	}
 	ret = 0;
-	if (PageMappedToDisk(page))
-		goto out_unlock;
 
 	if (page->index == size >> PAGE_CACHE_SHIFT)
 		len = size & ~PAGE_CACHE_MASK;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Performance of ext4, Holger Kiehl, (Wed Jun 11, 1:02 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Wed Jun 11, 3:59 am)
Re: Performance of ext4, Theodore Tso, (Wed Jun 11, 6:54 am)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 11, 12:58 pm)
Re: Performance of ext4 , Nick Dokos, (Wed Jun 11, 1:17 pm)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 11, 1:21 pm)
Re: Performance of ext4, Theodore Tso, (Wed Jun 11, 6:35 pm)
Re: Performance of ext4 , Holger Kiehl, (Thu Jun 12, 2:02 am)
Re: Performance of ext4 , Solofo.Ramangalahy, (Thu Jun 12, 3:58 am)
Re: Performance of ext4 , Holger Kiehl, (Thu Jun 12, 5:00 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 12, 6:19 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 12, 7:07 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Thu Jun 12, 11:06 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 12, 12:50 pm)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 13, 1:05 am)
Re: Performance of ext4, Jan Kara, (Mon Jun 16, 10:54 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 16, 11:13 am)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 17, 4:42 am)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 17, 10:58 pm)
Re: Performance of ext4, Andreas Dilger, (Wed Jun 18, 11:58 pm)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 4:09 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 19, 8:04 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 8:56 am)
Re: Performance of ext4, Eric Sandeen, (Thu Jun 19, 9:41 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 10:42 am)
Re: Performance of ext4, Mingming, (Thu Jun 19, 12:51 pm)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 1:09 am)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 1:32 am)
Re: Performance of ext4, Theodore Tso, (Fri Jun 20, 1:59 am)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 2:21 am)
Re: Performance of ext4, Holger Kiehl, (Sat Jun 21, 8:02 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 10:45 am)
Re: Performance of ext4, Andreas Dilger, (Mon Jun 23, 1:55 pm)
Re: Performance of ext4, Mingming, (Mon Jun 23, 5:31 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 8:07 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 8:28 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 8:33 pm)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 24, 5:57 am)
Re: Performance of ext4, Mingming, (Tue Jun 24, 10:58 am)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 24, 2:12 pm)
Re: Performance of ext4, Mingming, (Tue Jun 24, 3:58 pm)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 25, 2:09 am)
Re: Performance of ext4, Mingming, (Wed Jun 25, 5:46 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 2:14 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 2:49 am)
Re: Performance of ext4, Jan Kara, (Fri Jun 27, 3:00 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 10:35 am)
Re: Performance of ext4, Holger Kiehl, (Mon Jul 7, 6:13 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jul 10, 1:11 am)