On Thu, 26 Jun 2014 10:08:04 -0700
Linus Torvalds <[email protected]> wrote:

> On Jun 26, 2014 10:05 AM, "Fabian Frederick" <[email protected]> wrote:
> >
> > +#define OMFS_MAX_BLOCKS (1 << 31)
> 
> This is wrong. Think about the types, and what value this has...
> 

Hello Linus,

   Sorry but I don't see a problem with 2^31 value.
It's being compared to u64 value then used in DIV_ROUND_UP: divided by 8 to fit 
in unsigned int (maximum 2^32 - 1)... What value should I use ?

Thanks,
Fabian

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

Reply via email to