On Wed, Nov 28, 2007 at 05:11:02PM -0800, Christoph Lameter wrote:
We don't really need a temporary variable here....
That doesn't get any prettier. Perhaps:
while (index > (curidx = page_cache_index(mapping, *bytes))) {
curpos = *bytes;
zerofrom = page_cache_offset(mapping, curpos);
Should check (page_cache_pos(mapping, page->index, 0) > size)
const pgoff_t end_index = page_cache_index(mapping, i_size);
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html