X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fdirect-io.c;h=b2e86e739d7a12294141d82c6bb2f36212997967;hb=67e446eb4d063d9f75ef5ebbb4f5083a3f2edc32;hp=b61491bf31665eebdade68c06c02de2c620a70ee;hpb=d0034a7a4ac7fae708146ac0059b9c47a1543f0d;p=linux-2.6-microblaze.git diff --git a/fs/direct-io.c b/fs/direct-io.c index b61491bf3166..b2e86e739d7a 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -812,6 +812,7 @@ submit_page_section(struct dio *dio, struct dio_submit *sdio, struct page *page, struct buffer_head *map_bh) { int ret = 0; + int boundary = sdio->boundary; /* dio_send_cur_page may clear it */ if (dio->op == REQ_OP_WRITE) { /* @@ -850,10 +851,10 @@ submit_page_section(struct dio *dio, struct dio_submit *sdio, struct page *page, sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; out: /* - * If sdio->boundary then we want to schedule the IO now to + * If boundary then we want to schedule the IO now to * avoid metadata seeks. */ - if (sdio->boundary) { + if (boundary) { ret = dio_send_cur_page(dio, sdio, map_bh); if (sdio->bio) dio_bio_submit(dio, sdio);