Commit 29b6b58a authored by Oleg Drokin's avatar Oleg Drokin Committed by Linus Torvalds

[PATCH] reiserfs vs-8115 test adjustment

This patch below is needed to suppress the warning, with more than one
indirect block insertion at a time, it is now possible to split indirect
items as well and there were reports on lkml from people who seen this
warning and were worried about it.

To be on the safe side, I consulted with Vladimir Saveliev and he said that
the change is safe to do indeed.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a4a2d10d
......@@ -510,9 +510,10 @@ static int get_num_ver (int mode, struct tree_balance * tb, int h,
// s2bytes
snum012[4] = op_unit_num (&vn->vn_vi[split_item_num]) - snum012[4] - bytes_to_r - bytes_to_l - bytes_to_S1new;
if (vn->vn_vi[split_item_num].vi_index != TYPE_DIRENTRY)
if (vn->vn_vi[split_item_num].vi_index != TYPE_DIRENTRY &&
vn->vn_vi[split_item_num].vi_index != TYPE_INDIRECT)
reiserfs_warning (tb->tb_sb, "vs-8115: get_num_ver: not "
"directory item");
"directory or indirect item");
}
/* now we know S2bytes, calculate S1bytes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment