diff options
author | Yan, Zheng <zyan@redhat.com> | 2019-01-01 16:28:33 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-03-05 18:55:16 +0100 |
commit | 81c5a1487e52a316e5e7d79e9911376648a79e85 (patch) | |
tree | b716d8a8ec3d7b012197776fafd4c3f68c31c33c /fs/ceph/snap.c | |
parent | 84bf39509bea5b9f936281c4c660e75099fcd15f (diff) | |
download | lwn-81c5a1487e52a316e5e7d79e9911376648a79e85.tar.gz lwn-81c5a1487e52a316e5e7d79e9911376648a79e85.zip |
ceph: split large reconnect into multiple messages
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/snap.c')
-rw-r--r-- | fs/ceph/snap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c index f74193da0e09..dfc25ceeffed 100644 --- a/fs/ceph/snap.c +++ b/fs/ceph/snap.c @@ -124,6 +124,8 @@ static struct ceph_snap_realm *ceph_create_snap_realm( INIT_LIST_HEAD(&realm->inodes_with_caps); spin_lock_init(&realm->inodes_with_caps_lock); __insert_snap_realm(&mdsc->snap_realms, realm); + mdsc->num_snap_realms++; + dout("create_snap_realm %llx %p\n", realm->ino, realm); return realm; } @@ -175,6 +177,7 @@ static void __destroy_snap_realm(struct ceph_mds_client *mdsc, dout("__destroy_snap_realm %p %llx\n", realm, realm->ino); rb_erase(&realm->node, &mdsc->snap_realms); + mdsc->num_snap_realms--; if (realm->parent) { list_del_init(&realm->child_item); |