]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: rename ceph_calc_object_layout()
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)
commit6e3354ac568c17e5359d545fd95071a7ee99eec3
treed66f79d033667c45a652c464b6e69333bc3c54a2
parent0685ca321ff92ecbaffb709dd17c77a48351b0fd
libceph: rename ceph_calc_object_layout()

The purpose of ceph_calc_object_layout() is to fill in the pool
number and seed for a ceph_pg structure provided, based on a given
osd map and target object id.

Currently that function takes a file layout parameter, but the only
thing used out of that is its pool number.

Change the function so it takes a pool number rather than the full
file layout structure.  Only update the ceph_pg if the pool is found
in the osd map.  Get rid of few useless lines of code from the
function while there.

Since the function now very clearly just fills in the ceph_pg
structure it's provided, rename it ceph_calc_ceph_pg().

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
fs/ceph/ioctl.c
include/linux/ceph/osdmap.h
net/ceph/osd_client.c
net/ceph/osdmap.c