summaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
authorAlex Elder2013-02-16 05:10:17 +0100
committerSage Weil2013-05-02 06:14:27 +0200
commit60cf5992d96dd5b97baf74cd400d6e05f7f2c93e (patch)
tree8ef3612ee584c972b97e3d5e1aa632f9204b47e7 /net/ceph/messenger.c
parentlibceph: format target object name in caller (diff)
downloadkernel-qcow2-linux-60cf5992d96dd5b97baf74cd400d6e05f7f2c93e.tar.gz
kernel-qcow2-linux-60cf5992d96dd5b97baf74cd400d6e05f7f2c93e.tar.xz
kernel-qcow2-linux-60cf5992d96dd5b97baf74cd400d6e05f7f2c93e.zip
libceph: don't pass request to calc_layout()
The only remaining reason to pass the osd request to calc_layout() is to fill in its r_num_pages and r_page_alignment fields. Once it fills those in, it doesn't do anything more with them. We can therefore move those assignments into the caller, and get rid of the "req" parameter entirely. Note, however, that the only caller is ceph_osdc_new_request(), and that immediately overwrites those fields with values based on its passed-in page offset. So the assignment inside calc_layout() was redundant anyway. This resolves: http://tracker.ceph.com/issues/4262 Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph/messenger.c')
0 files changed, 0 insertions, 0 deletions