diff options
-rw-r--r-- | fs/direct-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index f853263cf74f..9644d0205dad 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c | |||
@@ -969,7 +969,8 @@ do_holes: | |||
969 | this_chunk_bytes = this_chunk_blocks << blkbits; | 969 | this_chunk_bytes = this_chunk_blocks << blkbits; |
970 | BUG_ON(this_chunk_bytes == 0); | 970 | BUG_ON(this_chunk_bytes == 0); |
971 | 971 | ||
972 | sdio->boundary = buffer_boundary(map_bh); | 972 | if (this_chunk_blocks == sdio->blocks_available) |
973 | sdio->boundary = buffer_boundary(map_bh); | ||
973 | ret = submit_page_section(dio, sdio, page, | 974 | ret = submit_page_section(dio, sdio, page, |
974 | offset_in_page, | 975 | offset_in_page, |
975 | this_chunk_bytes, | 976 | this_chunk_bytes, |