lkml.org 
[lkml]   [2008]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ext4: handle deleting corrupted indirect blocks
On Tue, Jul 08, 2008 at 03:42:00PM +0100, Duane Griffin wrote:
> + if (bh2jh(this_bh))
> + ext4_journal_dirty_metadata(handle, this_bh);
> + else
> + ext4_error(inode->i_sb, __func__,
> + "circular indirect block detected, "
> + "inode=%lu, block=%lu",
> + inode->i_ino, this_bh->b_blocknr);

this_bh->b_blocknr is a sector_t, which could be 64-bits. So this
should be:

ext4_error(inode->i_sb, __func__,
"circular indirect block detected, "
"inode=%lu, block=%llu",
inode->i_ino,
(unsigned long long) this_bh->b_blocknr);

I think.

With this change, I've included your three patches into the ext4 patch
queue.

- Ted



\
 
 \ /
  Last update: 2008-07-09 04:57    [W:0.064 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site