2.5.70: CODA breaks boot
Hi!
...it oopses in kmem_cache_create, called from release_console_sem and coda_init_inodecache.
Pavel
Signature · 2 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]
Quoted 3 lines · Pavel Machek
...it oopses in
kmem_cache_create, called fromrelease_console_semand
coda_init_inodecache.
You'll be needing this one.
fs/coda/inode.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
fs/coda/inode.c renamed from fs/coda/inode.c~coda-typo-fix +3 -3
@@ -69,9 +69,9 @@ static void init_once(void * foo, kmem_cint coda_init_inodecache (void ) { coda_inode_cachep =kmem_cache_create ("coda_inode_cache" , -sizeof (struct coda_inode_info ), -0 ,SLAB_HWCACHE_ALIGN ||SLAB_RECLAIM_ACCOUNT , - init_once,NULL ); +sizeof (struct coda_inode_info ), +0 ,SLAB_HWCACHE_ALIGN |SLAB_RECLAIM_ACCOUNT , + init_once,NULL );if (coda_inode_cachep ==NULL )return -ENOMEM ;return 0 ;
_
Hi Andrew.
Quoted 14 lines
Quoted 2 lines
...it oopses in
kmem_cache_create, called fromrelease_console_semand
coda_init_inodecache.You'll be needing this one.
fs/coda/inode.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)diff -puN
fs/coda/inode.c~coda-typo-fixfs/coda/inode.cfs/coda/inode.c renamed from fs/coda/inode.c~coda-typo-fix +0
-0@@ -69,9 +69,9 @@ static void init_once(void * foo, kmem_cint coda_init_inodecache (void ) {
fs/coda/inode.c static void init_once(void * foo, kmem_c · line 77
Quoted 10 lines
fs/coda/inode.c renamed from fs/coda/inode.c~coda-typo-fix +3
-3coda_inode_cachep =kmem_cache_create ("coda_inode_cache" , -sizeof (struct coda_inode_info ), +sizeof (struct coda_inode_info ), -0 ,SLAB_HWCACHE_ALIGN ||SLAB_RECLAIM_ACCOUNT , +0 ,SLAB_HWCACHE_ALIGN |SLAB_RECLAIM_ACCOUNT , - init_once,NULL ); + init_once,NULL );if (coda_inode_cachep ==NULL )return -ENOMEM ;return 0 ;
That patch has me puzzled. Other than changing the white space, what actual change to the code does it make? I can't see any.
Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 27-May-2003
| > fs/coda/inode.c | 6 +++---
| > 1 files changed, 3 insertions(+), 3 deletions(-)
| >
| > diff -puN fs/coda/inode.c~coda-typo-fix fs/coda/inode.c
| > --- 25/fs/coda/inode.c~coda-typo-fix 2003-05-27 22:27:11.000000000 -0700
| > +++ 25-akpm/fs/coda/inode.c 2003-05-27 22:27:27.000000000 -0700
| > @@ -69,9 +69,9 @@ static void init_once(void * foo, kmem_c
| > int coda_init_inodecache(void)
| > {
| > coda_inode_cachep = kmem_cache_create("coda_inode_cache",
| > - sizeof(struct coda_inode_info),
| > + sizeof(struct coda_inode_info),
| > - 0, SLAB_HWCACHE_ALIGN||SLAB_RECLAIM_ACCOUNT,
^^ change to || > + 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, | > - init_once, NULL); | > + init_once, NULL); | > if (coda_inode_cachep == NULL) | > return -ENOMEM; | > return 0; | | That patch has me puzzled. Other than changing the white space, what actual | change to the code does it make? I can't see any.
See above.
Yes, I understand. :)
--
~Randy
Em Wed, May 28, 2003 at 10:00:06PM +0100, Riley Williams escreveu:
Quoted 10 lines
Hi Andrew.
Quoted 8 lines
Quoted 2 lines
...it oopses in
kmem_cache_create, called fromrelease_console_semand
coda_init_inodecache.You'll be needing this one.
fs/coda/inode.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Quoted 10 lines
fs/coda/inode.c static void init_once(void * foo, kmem_c · line 73
Quoted 10 lines
diff -puN
fs/coda/inode.c~coda-typo-fixfs/coda/inode.cfs/coda/inode.c renamed from fs/coda/inode.c~coda-typo-fix +1
-2@@ -69,9 +69,9 @@ static void init_once(void * foo, kmem_cint coda_init_inodecache (void ) { coda_inode_cachep = kmem_cache_create("coda_inode_cache", - sizeof(struct coda_inode_info), + sizeof(struct coda_inode_info), - 0, SLAB_HWCACHE_ALIGN||SLAB_RECLAIM_ACCOUNT,
^^
logical ORQuoted 1 line
fs/coda/inode.c static void init_once(void * foo, kmem_c · line 73
Quoted 1 line
fs/coda/inode.c renamed from fs/coda/inode.c~coda-typo-fix +1
-0+ 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,
^
bit orQuoted 8 lines
fs/coda/inode.c static void init_once(void * foo, kmem_c · line 77
Quoted 5 lines
fs/coda/inode.c renamed from fs/coda/inode.c~coda-typo-fix +1
-1- init_once, NULL); + init_once, NULL);if (coda_inode_cachep ==NULL )return -ENOMEM ;return 0 ;That patch has me puzzled. Other than changing the white space, what actual change to the code does it make? I can't see any.
gotcha? 8)
- Arnaldo