diff options
author | Sage Weil <sage@newdream.net> | 2009-11-18 14:52:18 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-18 15:02:36 -0800 |
commit | 5f44f142601bf94c448e2d463f0f18fd159da164 (patch) | |
tree | 773b4677c536519435f073b27873212f705c9c3c /fs/ceph/mds_client.h | |
parent | 71ececdacae24be333c534869cb1b06357f0e215 (diff) | |
download | linux-5f44f142601bf94c448e2d463f0f18fd159da164.tar.gz linux-5f44f142601bf94c448e2d463f0f18fd159da164.tar.bz2 linux-5f44f142601bf94c448e2d463f0f18fd159da164.zip |
ceph: handle errors during osd client init
Unwind initializing if we get ENOMEM during client initialization.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.h')
-rw-r--r-- | fs/ceph/mds_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 0751b821f231..7c439488cfab 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h @@ -282,7 +282,7 @@ extern void ceph_put_mds_session(struct ceph_mds_session *s); extern int ceph_send_msg_mds(struct ceph_mds_client *mdsc, struct ceph_msg *msg, int mds); -extern void ceph_mdsc_init(struct ceph_mds_client *mdsc, +extern int ceph_mdsc_init(struct ceph_mds_client *mdsc, struct ceph_client *client); extern void ceph_mdsc_close_sessions(struct ceph_mds_client *mdsc); extern void ceph_mdsc_stop(struct ceph_mds_client *mdsc); |