libceph: define ceph_decode_pgid() only once
authorAlex Elder <elder@inktank.com>
Mon, 1 Apr 2013 23:58:26 +0000 (18:58 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:52 +0000 (21:17 -0700)
commitef4859d6479d19bcc65c3156cf3b7dd747355c29
tree83a977e35c7dd32834d707f93173c1e00da06384
parent8058fd45039724695d5b67a574544452635d64a9
libceph: define ceph_decode_pgid() only once

There are two basically identical definitions of __decode_pgid()
in libceph, one in "net/ceph/osdmap.c" and the other in
"net/ceph/osd_client.c".  Get rid of both, and instead define
a single inline version in "include/linux/ceph/osdmap.h".

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