Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933061AbYCDTNb (ORCPT ); Tue, 4 Mar 2008 14:13:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765587AbYCDTNU (ORCPT ); Tue, 4 Mar 2008 14:13:20 -0500 Received: from extu-mxob-2.symantec.com ([216.10.194.135]:56112 "EHLO extu-mxob-2.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757021AbYCDTNU (ORCPT ); Tue, 4 Mar 2008 14:13:20 -0500 Date: Tue, 4 Mar 2008 19:12:38 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@blonde.site To: Andrew Morton cc: Christoph Lameter , linux-kernel@vger.kernel.org Subject: [PATCH 2.6.25-rc3-mm1] fix ext2 borkage In-Reply-To: <20080304011928.e8c82c0c.akpm@linux-foundation.org> Message-ID: References: <20080304011928.e8c82c0c.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 27 use-page_cache_xxx-in-ext2.patch gave me lots of EXT2-fs error (device loop0): ext2_find_entry: dir 52629 size 5120 exceeds block count 2 so I stopped it quickly. Creating a directory entry was muddling up the directory and the linked inode, writing directory page out to the latter. Signed-off-by: Hugh Dickins --- fs/ext2/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 2.6.25-rc3-mm1/fs/ext2/dir.c 2008-03-04 11:37:47.000000000 +0000 +++ linux/fs/ext2/dir.c 2008-03-04 18:25:24.000000000 +0000 @@ -472,7 +472,7 @@ void ext2_set_link(struct inode *dir, st int ext2_add_link (struct dentry *dentry, struct inode *inode) { struct inode *dir = dentry->d_parent->d_inode; - struct address_space *mapping = inode->i_mapping; + struct address_space *mapping = dir->i_mapping; const char *name = dentry->d_name.name; int namelen = dentry->d_name.len; unsigned chunk_size = ext2_chunk_size(dir); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/