We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aaa7eb commit 4cafd04Copy full SHA for 4cafd04
fs/ceph/snap.c
@@ -1111,6 +1111,19 @@ void ceph_handle_snap(struct ceph_mds_client *mdsc,
1111
continue;
1112
adjust_snap_realm_parent(mdsc, child, realm->ino);
1113
}
1114
+ } else {
1115
+ /*
1116
+ * In the non-split case both 'num_split_inos' and
1117
+ * 'num_split_realms' should be 0, making this a no-op.
1118
+ * However the MDS happens to populate 'split_realms' list
1119
+ * in one of the UPDATE op cases by mistake.
1120
+ *
1121
+ * Skip both lists just in case to ensure that 'p' is
1122
+ * positioned at the start of realm info, as expected by
1123
+ * ceph_update_snap_trace().
1124
+ */
1125
+ p += sizeof(u64) * num_split_inos;
1126
+ p += sizeof(u64) * num_split_realms;
1127
1128
1129
/*
0 commit comments