Re: ext3_orphan_del may double-decrement bh->b_count

From: Andrew Morton
Date: Wed Jun 02 2004 - 17:06:23 EST


Jeff Mahoney <jeffm@xxxxxxxx> wrote:
>
> Chris Mason and I ran across this one while hunting down another bug.

Thanks. Can be simplified ;)

--- 25/fs/ext3/namei.c~ext3_orphan_del-may-double-decrement-bh-b_count Wed Jun 2 15:03:43 2004
+++ 25-akpm/fs/ext3/namei.c Wed Jun 2 15:05:24 2004
@@ -1971,8 +1971,6 @@ int ext3_orphan_del(handle_t *handle, st
goto out_brelse;
NEXT_ORPHAN(inode) = 0;
err = ext3_mark_iloc_dirty(handle, inode, &iloc);
- if (err)
- goto out_brelse;

out_err:
ext3_std_error(inode->i_sb, err);
_

What was the "other bug"?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/