2003-05-28 11:11:37

by Pavel Machek

[permalink] [raw]
Subject: 2.5.70: CODA breaks boot

Hi!

...it oopses in kmem_cache_create, called from release_console_sem and
coda_init_inodecache.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


2003-05-28 11:22:32

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.5.70: CODA breaks boot

Pavel Machek <[email protected]> wrote:
>
> ...it oopses in kmem_cache_create, called from release_console_sem and
> 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-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),
- 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;

_

2003-05-28 20:46:47

by Riley Williams

[permalink] [raw]
Subject: RE: 2.5.70: CODA breaks boot

Hi Andrew.

>> ...it oopses in kmem_cache_create, called from release_console_sem and
>> 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-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,
> + 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

2003-05-28 20:51:54

by Randy.Dunlap

[permalink] [raw]
Subject: Re: 2.5.70: CODA breaks boot

| > 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

2003-05-28 20:55:00

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: 2.5.70: CODA breaks boot

Em Wed, May 28, 2003 at 10:00:06PM +0100, Riley Williams escreveu:
> Hi Andrew.
>
> >> ...it oopses in kmem_cache_create, called from release_console_sem and
> >> 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-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,
^^
logical OR
> > + 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,
^
bit or
> > - 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