From: Sage Weil Date: Tue, 7 Sep 2010 22:59:27 +0000 (-0700) Subject: ceph: fix reconnect encoding for old servers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3612abbd5df6baa9ca3e0777c6c8646e202d3f66;p=linux-beck.git ceph: fix reconnect encoding for old servers Fix the reconnect encoding to encode the cap record when the MDS does not have the FLOCK capability (i.e., pre v0.22). Signed-off-by: Sage Weil --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index f091b1351786..fad95f8f2608 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -2374,6 +2374,8 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap, num_fcntl_locks, num_flock_locks); unlock_kernel(); + } else { + err = ceph_pagelist_append(pagelist, &rec, reclen); } out_free: