]> git.neil.brown.name Git - LaFS.git/commit
fix a BUG assertion in lafs_dirty_iblock.
authorNeilBrown <neilb@suse.de>
Fri, 4 Mar 2011 23:44:23 +0000 (10:44 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 4 Mar 2011 23:44:23 +0000 (10:44 +1100)
commitbfd2c2c5d47dcc24376b80623dd32db268c7ddb6
treef0d9c27f6fffe88841ef6aad7bb92dca8357c570
parent4774c0b90b8fa5e38bf3246322f3d9a26e6730b5
fix a BUG assertion in lafs_dirty_iblock.

The InoIdx block for an inode with depth==0 is not Valid,
as it contains no index information.
However it still can be appropriate to mark it dirty when a data block
is allocated, to ensure incorporation happens correctly.

So it is not a bug to dirty a non-Valid iblock - at least if the depth
is 0.

Signed-off-by: NeilBrown <neilb@suse.de>
block.c