All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 2.6.0-test4-mm2
Date: Thu, 28 Aug 2003 14:11:56 -0300	[thread overview]
Message-ID: <1062090715.484.1.camel@lorien> (raw)
In-Reply-To: <20030828090240.2cccf4d9.akpm@osdl.org>

Em Qui, 2003-08-28 às 13:02, Andrew Morton escreveu:
> Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br> wrote:
> >
> > when using the hdparm program, thus:
> > 
> >  # hdparm /dev/hda
> > 
> >  I'm getting this:
> > 
> >  Oops: 0000 [#1]
> 
> This should fix it.
> 
> --- 25/include/linux/genhd.h~large-dev_t-12-fix	2003-08-27 10:36:32.000000000 -0700
> +++ 25-akpm/include/linux/genhd.h	2003-08-27 10:36:32.000000000 -0700
> @@ -197,7 +197,7 @@ extern void rand_initialize_disk(struct 
>  
>  static inline sector_t get_start_sect(struct block_device *bdev)
>  {
> -	return bdev->bd_part->start_sect;
> +	return bdev->bd_contains == bdev ? 0 : bdev->bd_part->start_sect;
>  }
>  static inline sector_t get_capacity(struct gendisk *disk)
>  {

 fixed! :)

 thanks,

-- 
Luiz Fernando N. Capitulino

<lcapitulino@prefeitura.sp.gov.br>
<http://www.telecentros.sp.gov.br>


WARNING: multiple messages have this Message-ID (diff)
From: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 2.6.0-test4-mm2
Date: Thu, 28 Aug 2003 14:11:56 -0300	[thread overview]
Message-ID: <1062090715.484.1.camel@lorien> (raw)
In-Reply-To: <20030828090240.2cccf4d9.akpm@osdl.org>

Em Qui, 2003-08-28 as 13:02, Andrew Morton escreveu:
> Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br> wrote:
> >
> > when using the hdparm program, thus:
> > 
> >  # hdparm /dev/hda
> > 
> >  I'm getting this:
> > 
> >  Oops: 0000 [#1]
> 
> This should fix it.
> 
> --- 25/include/linux/genhd.h~large-dev_t-12-fix	2003-08-27 10:36:32.000000000 -0700
> +++ 25-akpm/include/linux/genhd.h	2003-08-27 10:36:32.000000000 -0700
> @@ -197,7 +197,7 @@ extern void rand_initialize_disk(struct 
>  
>  static inline sector_t get_start_sect(struct block_device *bdev)
>  {
> -	return bdev->bd_part->start_sect;
> +	return bdev->bd_contains == bdev ? 0 : bdev->bd_part->start_sect;
>  }
>  static inline sector_t get_capacity(struct gendisk *disk)
>  {

 fixed! :)

 thanks,

-- 
Luiz Fernando N. Capitulino

<lcapitulino@prefeitura.sp.gov.br>
<http://www.telecentros.sp.gov.br>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2003-08-28 17:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-27  5:10 2.6.0-test4-mm2 Andrew Morton
2003-08-27  5:10 ` 2.6.0-test4-mm2 Andrew Morton
2003-08-27 10:12 ` 2.6.0-test4-mm2 didn't try to mount root Helge Hafting
     [not found]   ` <20030827031534.29b08946.akpm@osdl.org>
2003-08-27 11:52     ` Helge Hafting
2003-08-27 12:58 ` 2.6.0-test4-mm2 Christian Axelsson
2003-08-27 12:58   ` 2.6.0-test4-mm2 Christian Axelsson
2003-08-27 15:54   ` 2.6.0-test4-mm2 Steven Cole
2003-08-27 15:54     ` 2.6.0-test4-mm2 Steven Cole
2003-08-27 17:25   ` 2.6.0-test4-mm2 Andrew Morton
2003-08-27 17:25     ` 2.6.0-test4-mm2 Andrew Morton
2003-08-27 17:59     ` 2.6.0-test4-mm2 Hans Reiser
2003-08-27 17:59       ` 2.6.0-test4-mm2 Hans Reiser
2003-08-27 19:48       ` 2.6.0-test4-mm2 Christian Axelsson
2003-08-27 19:48         ` 2.6.0-test4-mm2 Christian Axelsson
2003-08-28 12:53 ` 2.6.0-test4-mm2 Luiz Capitulino
2003-08-28 12:53   ` 2.6.0-test4-mm2 Luiz Capitulino
2003-08-28 16:02   ` 2.6.0-test4-mm2 Andrew Morton
2003-08-28 16:02     ` 2.6.0-test4-mm2 Andrew Morton
2003-08-28 17:11     ` Luiz Capitulino [this message]
2003-08-28 17:11       ` 2.6.0-test4-mm2 Luiz Capitulino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1062090715.484.1.camel@lorien \
    --to=lcapitulino@prefeitura.sp.gov.br \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.