diff options
| author | Ingo Molnar <mingo@elte.hu> | 2010-10-13 09:44:24 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2010-10-13 09:44:24 -0400 |
| commit | 3d8a1a6a8af910cc2da566080d111e062a124ba6 (patch) | |
| tree | 0c78b30a5c7aa083e215222989f982313c5141c0 /fs/direct-io.c | |
| parent | 1b13fe6a6e9986dbc079cbb05090be75edbffa5d (diff) | |
| parent | 5d0d71569e671239ae0d905ced9b65cd843f99ee (diff) | |
Merge branch 'amd-iommu/2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into core/iommu
Diffstat (limited to 'fs/direct-io.c')
| -rw-r--r-- | fs/direct-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index 51f270b479b6..48d74c7391d1 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c | |||
| @@ -634,7 +634,7 @@ static int dio_send_cur_page(struct dio *dio) | |||
| 634 | int ret = 0; | 634 | int ret = 0; |
| 635 | 635 | ||
| 636 | if (dio->bio) { | 636 | if (dio->bio) { |
| 637 | loff_t cur_offset = dio->block_in_file << dio->blkbits; | 637 | loff_t cur_offset = dio->cur_page_fs_offset; |
| 638 | loff_t bio_next_offset = dio->logical_offset_in_bio + | 638 | loff_t bio_next_offset = dio->logical_offset_in_bio + |
| 639 | dio->bio->bi_size; | 639 | dio->bio->bi_size; |
| 640 | 640 | ||
| @@ -659,7 +659,7 @@ static int dio_send_cur_page(struct dio *dio) | |||
| 659 | * Submit now if the underlying fs is about to perform a | 659 | * Submit now if the underlying fs is about to perform a |
| 660 | * metadata read | 660 | * metadata read |
| 661 | */ | 661 | */ |
| 662 | if (dio->boundary) | 662 | else if (dio->boundary) |
| 663 | dio_bio_submit(dio); | 663 | dio_bio_submit(dio); |
| 664 | } | 664 | } |
| 665 | 665 | ||
