[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Better Linux Kernel Patch for 4GB Inode Problem



>From paul@serice.net  Wed Jun  9 20:59:35 2004
> > Why is it soo hard to understand that you cannot divide by 64 while
> > the smallest directory entry is 34 bytes and most real life entries
> > are still smaller than 64 bytes?

>I'm fairly certain I'm dividing by 32.  The second patch has the
>following:

>     block << 6

>which is the same as

>     block << (11 - 5)

>which (assuming arbitrary precision) is the same as

>     (block << 11) >> 5

>which is the byte offset divided by 32.  So, the math was correct
>from the start, right?

The version I did see, did right shift by 6.

This is a division by 64

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily



Reply to: