login
Header Space

 
 

Re: A little coding style nugget of joy

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andy Lutomirski <luto@...>
Cc: <linux-kernel@...>, <andi@...>, <kernel1@...>
Date: Wednesday, September 19, 2007 - 5:30 pm

> This is a terrible assumption in general (i.e. if filesize % blocksize 

You didn't calculate the probability of actually saving a full block 
or not (that's the only thing that matters). I assumed it's relatively
small and can be ignored in practice since the amount of end white
space is negligible compared to total file size.

-Andi
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
A little coding style nugget of joy, Matt LaPlante, (Wed Sep 19, 12:34 pm)
Re: A little coding style nugget of joy, Pádraig Brady, (Thu Sep 20, 5:20 am)
Re: A little coding style nugget of joy, Robert P. J. Day, (Thu Sep 20, 6:11 am)
Re: A little coding style nugget of joy, Scott Preece, (Thu Sep 20, 10:04 am)
Re: A little coding style nugget of joy, Andi Kleen, (Wed Sep 19, 1:13 pm)
Re: A little coding style nugget of joy, Andy Lutomirski, (Wed Sep 19, 5:22 pm)
Re: A little coding style nugget of joy, Andi Kleen, (Wed Sep 19, 5:30 pm)
Re: A little coding style nugget of joy, Andrew Lutomirski, (Wed Sep 19, 5:39 pm)
speck-geostationary