Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373298
b: refs/heads/master
c: 07c09b7
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 8d1ab2b commit 728e698
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ff5f385b1449a07372d51fb89ca94dbfb6a3be2
refs/heads/master: 07c09b725543ff2958c11522d583f90f7fdba735
2 changes: 1 addition & 1 deletion trunk/include/linux/ceph/messenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct ceph_msg {
#ifdef CONFIG_BLOCK
struct bio *bio; /* instead of pages/pagelist */
struct bio *bio_iter; /* bio iterator */
int bio_seg; /* current bio segment */
unsigned int bio_seg; /* current bio segment */
#endif /* CONFIG_BLOCK */
struct ceph_pagelist *trail; /* the trailing part of the data */
bool front_is_vmalloc;
Expand Down
16 changes: 9 additions & 7 deletions trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,18 +697,19 @@ static void con_out_kvec_add(struct ceph_connection *con,
}

#ifdef CONFIG_BLOCK
static void init_bio_iter(struct bio *bio, struct bio **iter, int *seg)
static void init_bio_iter(struct bio *bio, struct bio **bio_iter,
unsigned int *bio_seg)
{
if (!bio) {
*iter = NULL;
*seg = 0;
*bio_iter = NULL;
*bio_seg = 0;
return;
}
*iter = bio;
*seg = bio->bi_idx;
*bio_iter = bio;
*bio_seg = (unsigned int) bio->bi_idx;
}

static void iter_bio_next(struct bio **bio_iter, int *seg)
static void iter_bio_next(struct bio **bio_iter, unsigned int *seg)
{
if (*bio_iter == NULL)
return;
Expand Down Expand Up @@ -1818,7 +1819,8 @@ static int read_partial_message_pages(struct ceph_connection *con,

#ifdef CONFIG_BLOCK
static int read_partial_message_bio(struct ceph_connection *con,
struct bio **bio_iter, int *bio_seg,
struct bio **bio_iter,
unsigned int *bio_seg,
unsigned int data_len, bool do_datacrc)
{
struct bio_vec *bv = bio_iovec_idx(*bio_iter, *bio_seg);
Expand Down

0 comments on commit 728e698

Please sign in to comment.