lkml.org 
[lkml]   [2008]   [Apr]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 20 Apr 2008 11:57:22 +0200
FromMarcin Slusarz <>
SubjectRe: [PATCH 3/8] omfs: add inode routines
On Sat, Apr 19, 2008 at 11:28:42PM +0200, Marcin Slusarz wrote:
> > +static void set_block_shift(struct omfs_sb_info *sbi)
> > +{
> > +	unsigned int scale = sbi->s_blocksize / sbi->s_sys_blocksize;
> > +	sbi->s_block_shift = 0;
> > +	for (scale >>= 1; scale; scale >>= 1)
> > +		sbi->s_block_shift++;
> > +}
> isn't it get_bitmask_order(scale - 1)?

I mean get_bitmask_order(scale >> 1) ;)

Marcin



\
 
 \ /
  Last update: 2008-04-20 12:01    [from the cache]
©2003-2008