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 f86a486 commit 51884d1Copy full SHA for 51884d1
fs/ceph/snap.c
@@ -763,7 +763,7 @@ int ceph_update_snap_trace(struct ceph_mds_client *mdsc,
763
struct ceph_mds_snap_realm *ri; /* encoded */
764
__le64 *snaps; /* encoded */
765
__le64 *prior_parent_snaps; /* encoded */
766
- struct ceph_snap_realm *realm = NULL;
+ struct ceph_snap_realm *realm;
767
struct ceph_snap_realm *first_realm = NULL;
768
struct ceph_snap_realm *realm_to_rebuild = NULL;
769
int rebuild_snapcs;
@@ -774,6 +774,7 @@ int ceph_update_snap_trace(struct ceph_mds_client *mdsc,
774
775
dout("%s deletion=%d\n", __func__, deletion);
776
more:
777
+ realm = NULL;
778
rebuild_snapcs = 0;
779
ceph_decode_need(&p, e, sizeof(*ri), bad);
780
ri = p;
0 commit comments