* @param header The ScrubHeader propagated from whereever this scrub
* was initiated
*/
- void enqueue_inode_top(CInode *in, const ScrubHeaderRefConst& header,
+ void enqueue_inode_top(CInode *in, ScrubHeaderRef& header,
MDSInternalContextBase *on_finish) {
enqueue_inode(in, header, on_finish, true);
}
/** Like enqueue_inode_top, but we wait for all pending scrubs before
* starting this one.
*/
- void enqueue_inode_bottom(CInode *in, const ScrubHeaderRefConst& header,
+ void enqueue_inode_bottom(CInode *in, ScrubHeaderRef& header,
MDSInternalContextBase *on_finish) {
enqueue_inode(in, header, on_finish, false);
}
* Put the inode at either the top or bottom of the stack, with
* the given scrub params, and then try and kick off more scrubbing.
*/
- void enqueue_inode(CInode *in, const ScrubHeaderRefConst& header,
+ void enqueue_inode(CInode *in, ScrubHeaderRef& header,
MDSInternalContextBase *on_finish, bool top);
- void _enqueue_inode(CInode *in, CDentry *parent, const ScrubHeaderRefConst& header,
+ void _enqueue_inode(CInode *in, CDentry *parent, ScrubHeaderRef& header,
MDSInternalContextBase *on_finish, bool top);
/**
* Kick off as many scrubs as are appropriate, based on the current
* progress. Try again later.
*
*/
- void scrub_dirfrag(CDir *dir, const ScrubHeaderRefConst& header,
+ void scrub_dirfrag(CDir *dir, ScrubHeaderRef& header,
bool *added_children, bool *is_terminal, bool *done);
/**
* Scrub a directory-representing dentry.