Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373433
b: refs/heads/master
c: ea96571
h: refs/heads/master
i:
  373431: 519a7af
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent b6956f3 commit 0aa2002
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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: 5476492fba9fd0b4118aacf5b924dd29b8cca56c
refs/heads/master: ea96571f7b865edaf1acd472e6f2cddc9fb67892
2 changes: 2 additions & 0 deletions trunk/include/linux/ceph/messenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ extern void ceph_msg_data_set_pages(struct ceph_msg *msg, struct page **pages,
size_t length, size_t alignment);
extern void ceph_msg_data_set_pagelist(struct ceph_msg *msg,
struct ceph_pagelist *pagelist);
#ifdef CONFIG_BLOCK
extern void ceph_msg_data_set_bio(struct ceph_msg *msg, struct bio *bio,
size_t length);
#endif /* CONFIG_BLOCK */

extern struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags,
bool can_fail);
Expand Down
4 changes: 3 additions & 1 deletion trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ static bool ceph_msg_data_bio_advance(struct ceph_msg_data *data, size_t bytes)

return true;
}
#endif
#endif /* CONFIG_BLOCK */

/*
* For a page array, a piece comes from the first page in the array
Expand Down Expand Up @@ -3011,6 +3011,7 @@ void ceph_msg_data_set_pagelist(struct ceph_msg *msg,
}
EXPORT_SYMBOL(ceph_msg_data_set_pagelist);

#ifdef CONFIG_BLOCK
void ceph_msg_data_set_bio(struct ceph_msg *msg, struct bio *bio,
size_t length)
{
Expand All @@ -3028,6 +3029,7 @@ void ceph_msg_data_set_bio(struct ceph_msg *msg, struct bio *bio,
msg->data_length = length;
}
EXPORT_SYMBOL(ceph_msg_data_set_bio);
#endif /* CONFIG_BLOCK */

/*
* construct a new message with given type, size
Expand Down

0 comments on commit 0aa2002

Please sign in to comment.