From: Igor Golikov Date: Wed, 18 Feb 2026 14:00:04 +0000 (+0000) Subject: mds: fix code review comments X-Git-Tag: testing/wip-vshankar-testing-20260222.101816~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a09dbb54522288b11ebbfa961a23a89fb00f6564;p=ceph-ci.git mds: fix code review comments Signed-off-by: Igor Golikov Fixes: https://tracker.ceph.com/issues/74135 Fixes: https://tracker.ceph.com/issues/73700 --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 3b267cb967c..38ac9ce979a 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -2128,13 +2128,7 @@ void MDCache::broadcast_quota_to_client(CInode *in, client_t exclude_ct, bool qu return; const auto& pi = in->get_projected_inode(); - - // create snaprealm for quota inode (quota was set before mimic) - if (!in->get_projected_srnode()) - mds->server->create_quota_realm(in); - inodeno_t subvolume_id = in->get_subvolume_id(); - dout(10) << __func__ << " ino " << in->ino() << " subvol " << subvolume_id << " quota_enabled=" << pi->quota.is_enabled() @@ -2161,6 +2155,10 @@ void MDCache::broadcast_quota_to_client(CInode *in, client_t exclude_ct, bool qu if (!pi->quota.is_enabled() && !quota_change) return; + // create snaprealm for quota inode (quota was set before mimic) + if (!in->get_projected_srnode()) + mds->server->create_quota_realm(in); + for (auto &p : in->client_caps) { Capability *cap = &p.second; if (cap->is_noquota())