From ea882f08613a6efa9929b3d6a7e7bfcbec22cf92 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Mon, 20 May 2002 21:43:46 -0700 Subject: [PATCH] reiserfs 64 bit bug in get_virtual_node_size This patch fixes a problem with reiserfs on 64 bit machines. Our struct virtual_item is a different size there, and some calculations that assume otherwise lead to this panic create_virtual_node: vs-8030: create_virtual_node: virtual node space consumed --- include/linux/reiserfs_fs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/linux') diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index 173279f6ff0a..abe55b91a328 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h @@ -1342,6 +1342,13 @@ struct virtual_node struct virtual_item * vn_vi; /* array of items (including a new one, excluding item to be deleted) */ }; +/* used by directory items when creating virtual nodes */ +struct direntry_uarea { + int flags; + __u16 entry_count; + __u16 entry_sizes[1]; +} __attribute__ ((__packed__)) ; + /***************************************************************************/ /* TREE BALANCE */ -- cgit v1.2.3