lost patch for fs/reiserfs/fix_node.c

From: Mark Nipper
Date: Fri Jan 07 2005 - 14:43:31 EST


Any reason the attached patch from Oleg Drokin never made
it even in 2.6.10 now? I see the supposedly harmless errors this
patch is meant to correct and it seems like an oversight it never
made it into the tree.

--
Mark Nipper e-contacts:
4475 Carter Creek Parkway nipsy@xxxxxxxxxxxx
Apartment 724 http://nipsy.bitgnome.net/
Bryan, Texas, 77802-4481 AIM/Yahoo: texasnipsy ICQ: 66971617
(979)575-3193 MSN: nipsy@xxxxxxxx

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GG/IT d- s++:+ a- C++$ UBL++++$ P--->+++ L+++$ !E---
W++(--) N+ o K++ w(---) O++ M V(--) PS+++(+) PE(--)
Y+ PGP t+ 5 X R tv b+++@ DI+(++) D+ G e h r++ y+(**)
------END GEEK CODE BLOCK------

---begin random quote of the moment---
He hoped and prayed that there wasn't an afterlife. Then he
realized there was a contradiction involved here and merely
hoped that there wasn't an afterlife.
-- Douglas Adams
----end random quote of the moment----
--- linux-2.6.10/fs/reiserfs/fix_node.c.orig 2004-12-24 15:34:30.000000000 -0600
+++ linux-2.6.10/fs/reiserfs/fix_node.c 2005-01-07 13:20:43.000000000 -0600
@@ -510,9 +510,10 @@
// 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 */