diff options
author | Alex Elder <elder@inktank.com> | 2013-02-15 22:10:17 -0600 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:14:27 -0700 |
commit | 60cf5992d96dd5b97baf74cd400d6e05f7f2c93e (patch) | |
tree | 8ef3612ee584c972b97e3d5e1aa632f9204b47e7 /fs/ceph | |
parent | dbe0fc4188ee568d6e26fe938a653f01e18d6f4e (diff) |
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 'fs/ceph')
0 files changed, 0 insertions, 0 deletions