lkml.org 
[lkml]   [2006]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] map multiple blocks at a time in mpage_readpages()
Badari Pulavarty wrote:
> + for (i = 0; ; i++) {
> + if (i == nblocks) {
> + *map_valid = 0;
> + break;
> + } else if (page_block == blocks_per_page)
> + break;
> + blocks[page_block] = map_bh->b_blocknr + i;
> + page_block++;
> + block_in_file++;
> + }

Hi Badari, a tiny nit:

for (i = 0; ; i++) {
if (i == nblocks) {
*map_valid = 0;
break;
}
if (page_block == blocks_per_page)
break;
blocks[page_block] = map_bh->b_blocknr + i;
page_block++;
block_in_file++;
}

Regards,

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

\
 
 \ /
  Last update: 2006-02-15 00:33    [W:0.076 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site