diff options
| author | Ingo Molnar <mingo@elte.hu> | 2010-08-12 15:38:56 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2010-08-12 15:39:04 -0400 |
| commit | f46a6804135795f77d096ab0128f27531c7d051c (patch) | |
| tree | 7cd33f69e3661327739ae4c96e5a8389e7fc912e /fs/bio.c | |
| parent | b3e84ffa21f916e3354a12a7f19169c9febe96d0 (diff) | |
| parent | ad41a1e0cab07c5125456e8d38e5b1ab148d04aa (diff) | |
Merge branch 'linus' into perf/urgent
Merge reason: Fix upstream breakage introduced by:
de5d9bf: Move list types from <linux/list.h> to <linux/types.h>.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/bio.c')
| -rw-r--r-- | fs/bio.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -843,7 +843,8 @@ struct bio *bio_copy_user_iov(struct request_queue *q, | |||
| 843 | if (!bio) | 843 | if (!bio) |
| 844 | goto out_bmd; | 844 | goto out_bmd; |
| 845 | 845 | ||
| 846 | bio->bi_rw |= (!write_to_vm << BIO_RW); | 846 | if (!write_to_vm) |
| 847 | bio->bi_rw |= REQ_WRITE; | ||
| 847 | 848 | ||
| 848 | ret = 0; | 849 | ret = 0; |
| 849 | 850 | ||
| @@ -1024,7 +1025,7 @@ static struct bio *__bio_map_user_iov(struct request_queue *q, | |||
| 1024 | * set data direction, and check if mapped pages need bouncing | 1025 | * set data direction, and check if mapped pages need bouncing |
| 1025 | */ | 1026 | */ |
| 1026 | if (!write_to_vm) | 1027 | if (!write_to_vm) |
| 1027 | bio->bi_rw |= (1 << BIO_RW); | 1028 | bio->bi_rw |= REQ_WRITE; |
| 1028 | 1029 | ||
| 1029 | bio->bi_bdev = bdev; | 1030 | bio->bi_bdev = bdev; |
| 1030 | bio->bi_flags |= (1 << BIO_USER_MAPPED); | 1031 | bio->bi_flags |= (1 << BIO_USER_MAPPED); |
