lkml.org 
[lkml]   [2004]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Rename SECTOR_SIZE to BIO_SECTOR_SIZE

On 2004.10.27, Matt Mackall wrote:
> On Wed, Oct 27, 2004 at 12:05:23PM -0700, Chris Wedgwood wrote:
> > Rename (one of the uses of) SECTOR_SIZE to BIO_SECTOR_SIZE which is
> > more appropriate.
>
> > Index: cw-current/include/linux/ide.h
> > ===================================================================
> > --- cw-current.orig/include/linux/ide.h 2004-10-27 11:33:06.237319044 -0700
> > +++ cw-current/include/linux/ide.h 2004-10-27 11:35:13.246711414 -0700
> > @@ -202,8 +202,8 @@
> > #define PARTN_BITS 6 /* number of minor dev bits for partitions */
> > #define PARTN_MASK ((1<<PARTN_BITS)-1) /* a useful bit mask */
> > #define MAX_DRIVES 2 /* per interface; 2 assumed by lots of code */
> > -#define SECTOR_SIZE 512
> > -#define SECTOR_WORDS (SECTOR_SIZE / 4) /* number of 32bit words per sector */
> > +#define BIO_SECTOR_SIZE 512
> > +#define SECTOR_WORDS (BIO_SECTOR_SIZE / 4) /* number of 32bit words per sector */
> > #define IDE_LARGE_SEEK(b1,b2,t) (((b1) > (b2) + (t)) || ((b2) > (b1) + (t)))
>
> So shouldn't this be in bio.h now?
>

And for uniformity, SECTOR_WORDS -> BIO_SECTOR_WORDS ?

--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandrakelinux release 10.1 (Community) for i586
Linux 2.6.9-jam1 (gcc 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)) #6


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:2.472 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site