]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/CInode: remove the default value from will_block_for_quiesce()
authorMax Kellermann <max.kellermann@ionos.com>
Wed, 30 Oct 2024 07:08:06 +0000 (08:08 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 17 Apr 2025 16:00:16 +0000 (18:00 +0200)
Defaulting a `MDRequestRef` parameter works only if the type is fully
defined and thus disallows forward declarations.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mds/CInode.h

index 17c318f22692f66ed76d7594f9da59852c4b4874..ae85d90f9484ccd40e7294a49033e7b09ab03dba 100644 (file)
@@ -668,7 +668,7 @@ class CInode : public MDSCacheObject, public InodeStoreBase, public Counter<CIno
   bool is_symlink() const { return get_inode()->is_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; }