From: Max Kellermann Date: Wed, 30 Oct 2024 07:08:06 +0000 (+0100) Subject: mds/CInode: remove the default value from will_block_for_quiesce() X-Git-Tag: v20.3.0~40^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5955f1f8491575906483417ce8775c19ece8f2f8;p=ceph.git mds/CInode: remove the default value from will_block_for_quiesce() Defaulting a `MDRequestRef` parameter works only if the type is fully defined and thus disallows forward declarations. Signed-off-by: Max Kellermann --- diff --git a/src/mds/CInode.h b/src/mds/CInode.h index 17c318f22692..ae85d90f9484 100644 --- a/src/mds/CInode.h +++ b/src/mds/CInode.h @@ -668,7 +668,7 @@ class CInode : public MDSCacheObject, public InodeStoreBase, public Counteris_symlink(); } bool is_dir() const { return get_inode()->is_dir(); } bool is_quiesced() const; - bool will_block_for_quiesce(const MDRequestRef& mdr = MDRequestRef {}); + bool will_block_for_quiesce(const MDRequestRef& mdr); bool is_head() const { return last == CEPH_NOSNAP; }