Dnia Fri, 30 Sep 2005 10:31:01 +0200, Alexander Zarochentsev
<[EMAIL PROTECTED]> napisał:
On Friday 30 September 2005 02:09, Jake Maciejewski wrote:
I get the same with 2.6.13.2 and gcc 3.4.4 on amd64
can you try this patch?
-----------------------------------
--- a/fs/reiser4/spin_macros.h
+++ b/fs/reiser4/spin_macros.h
@@ -82,8 +82,6 @@ typedef struct reiser4_rw_data {
static inline void spin_ ## NAME ## _init(TYPE *x)
\
{
\
__ODCA("nikita-2987", x != NULL); \
- cassert(sizeof(x->FIELD) != 0);
\
- memset(& x->FIELD, 0, sizeof x->FIELD);
\
spin_lock_init(& x->FIELD.lock); \
}
\
\
@@ -236,7 +234,6 @@ typedef struct { int foo; } NAME ## _spi
static inline void rw_ ## NAME ## _init(TYPE *x)
\
{
\
__ODCA("nikita-2988", x != NULL); \
- memset(& x->FIELD, 0, sizeof x->FIELD);
\
rwlock_init(& x->FIELD.lock);
\
}
\
\
-----------------------------------
It helped (cut and paste didn't worked for me as the resulting patch
didn't applied but I just deleted those 3 lines by hand). Kernel did
compile and now I'm writing this running 2.6.13 with reiser4 as /. I hope
I won't see any oopses during shutdown as I sow with 2.6.13-mm{1,2} based
kernels (archck).