X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fdirect-io.c;h=acf0da1bd257158fa79b0ba9f9f34b58a7207562;hb=5fdc2eeb5d1d3800367f471690b01fcd1fd5b963;hp=b5928a7b6a5a61783c74393f4777eef5cc46839e;hpb=ebf8889bd1fe3615991ff4494635d237280652a2;p=pandora-kernel.git diff --git a/fs/direct-io.c b/fs/direct-io.c index b5928a7b6a5a..acf0da1bd257 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -163,7 +163,7 @@ static int dio_refill_pages(struct dio *dio) up_read(¤t->mm->mmap_sem); if (ret < 0 && dio->blocks_available && (dio->rw & WRITE)) { - struct page *page = ZERO_PAGE(dio->curr_user_address); + struct page *page = ZERO_PAGE(0); /* * A memory fault, but the filesystem has some outstanding * mapped blocks. We need to use those blocks up to avoid @@ -763,7 +763,7 @@ static void dio_zero_block(struct dio *dio, int end) this_chunk_bytes = this_chunk_blocks << dio->blkbits; - page = ZERO_PAGE(dio->curr_user_address); + page = ZERO_PAGE(0); if (submit_page_section(dio, page, 0, this_chunk_bytes, dio->next_block_for_io)) return;