The code path in which symlink gets i_blocks == -7 is precisely known and
only occurs when its being deleted, so it's not a problem.
>
> So this makes me believe that setting i_blocks=0 is just hiding a block
> leak somewhere in the reiserfs code, or math errors somewhere.
>
> It is also true that clear_inode() or get_new_inode() (or proc_read_inode())
> should initialize all of the used fields to zero so that a problem in one
> filesystem can't cause problems elsewhere. It appears that i_blocks is
Yes, I agree with you and Alexander on this. We just wanted this glaring
bug to fixed immediately and so sent out as small patch as possible.
> set to zero by ext2_new_inode(), so probably proc_read_inode() should do
> the same (since it uses i_blocks).
>
> Cheers, Andreas
>
> PS - could someone on the reiserfs team (or Linus) run the reiserfs code
> through "indent" (or auto format in emacs) per Documentation/CodingStyle?
> It is really a gross mess, to such a point that you can hardly see what
Oh, yes.
> is going on. It's not just that it is a different indent style, it has
> no coherent indentation or comment formatting at all. Maybe for 2.5?
I hope so. We already have 200k of cleanup patches in 2.4.7-ac3.
> --
> Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
> \ would they cancel out, leaving him still hungry?"
> http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
Nikita.
-
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/