]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: use calc_pages_for() in start_read()
authorAlex Elder <elder@inktank.com>
Sat, 2 Mar 2013 00:00:15 +0000 (18:00 -0600)
committerAlex Elder <elder@inktank.com>
Tue, 5 Mar 2013 21:22:56 +0000 (15:22 -0600)
commit8e306e79027f6b7a373ab590fa9a32b9d113eedd
treeed1533a95c96d21d517f1d7ca1f01fec1c67ae67
parenta4e3129b54a241793088d31bd5ed61231d279f0b
ceph: use calc_pages_for() in start_read()

There's a spot that computes the number of pages to allocate for a
page-aligned length by just shifting it.  Use calc_pages_for()
instead, to be consistent with usage everywhere else.  The result
is the same.

The reason for this is to make it clearer in an upcoming patch that
this calculation is duplicated.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
fs/ceph/addr.c