Re: [patch 10/19] Use page_cache_xxx in fs/buffer.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Chinner
Date: Wednesday, November 28, 2007 - 8:34 pm

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 10/19] Use page_cache_xxx in fs/buffer.c, Christoph Lameter, (Wed Nov 28, 6:11 pm)
Re: [patch 10/19] Use page_cache_xxx in fs/buffer.c, David Chinner, (Wed Nov 28, 8:34 pm)
Re: [patch 10/19] Use page_cache_xxx in fs/buffer.c, Christoph Lameter, (Wed Nov 28, 8:48 pm)
Re: [patch 10/19] Use page_cache_xxx in fs/buffer.c, David Chinner, (Wed Nov 28, 9:01 pm)