]> git.baikalelectronics.ru Git - kernel.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)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:21 +0000 (21:16 -0700)
commitc9f02b0552b905b44ae69d4a44a17585bf41a73c
tree83ed8068f3b0c1138601a763657aa3a2335fd24e
parent92566862b7cf36702b59fa4d18d39ac7620ded8b
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