diff options
| author | Eric Paris <eparis@redhat.com> | 2013-11-22 18:57:08 -0500 |
|---|---|---|
| committer | Eric Paris <eparis@redhat.com> | 2013-11-22 18:57:54 -0500 |
| commit | fc582aef7dcc27a7120cf232c1e76c569c7b6eab (patch) | |
| tree | 7d275dd4ceab6067b91e9a25a5f6338b425fbccd /include/linux/blkdev.h | |
| parent | 9175c9d2aed528800175ef81c90569d00d23f9be (diff) | |
| parent | 5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (diff) | |
Merge tag 'v3.12'
Linux 3.12
Conflicts:
fs/exec.c
Diffstat (limited to 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 2fdb4a451b49..0e6f765aa1f5 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -862,6 +862,17 @@ static inline unsigned int blk_rq_get_max_sectors(struct request *rq) | |||
| 862 | return blk_queue_get_max_sectors(q, rq->cmd_flags); | 862 | return blk_queue_get_max_sectors(q, rq->cmd_flags); |
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | static inline unsigned int blk_rq_count_bios(struct request *rq) | ||
| 866 | { | ||
| 867 | unsigned int nr_bios = 0; | ||
| 868 | struct bio *bio; | ||
| 869 | |||
| 870 | __rq_for_each_bio(bio, rq) | ||
| 871 | nr_bios++; | ||
| 872 | |||
| 873 | return nr_bios; | ||
| 874 | } | ||
| 875 | |||
| 865 | /* | 876 | /* |
| 866 | * Request issue related functions. | 877 | * Request issue related functions. |
| 867 | */ | 878 | */ |
