From: Yan, Zheng Date: Thu, 21 Feb 2013 05:43:55 +0000 (+0800) Subject: ceph: fix LSSNAP regression X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a034497005491dc91ed7bfd660b04923d35d0e6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ceph: fix LSSNAP regression commit 6e8575faa8 makes parse_reply_info_extra() return -EIO for LSSNAP Signed-off-by: Yan, Zheng Reviewed-by: Greg Farnum --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 5c17705f88b1..6e67a3501673 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -265,7 +265,8 @@ static int parse_reply_info_extra(void **p, void *end, { if (info->head->op == CEPH_MDS_OP_GETFILELOCK) return parse_reply_info_filelock(p, end, info, features); - else if (info->head->op == CEPH_MDS_OP_READDIR) + else if (info->head->op == CEPH_MDS_OP_READDIR || + info->head->op == CEPH_MDS_OP_LSSNAP) return parse_reply_info_dir(p, end, info, features); else if (info->head->op == CEPH_MDS_OP_CREATE) return parse_reply_info_create(p, end, info, features);