We should never arrive in _flush() and not have a reference to the inode
in question, because the presence of dirty buffers pins the inode. This
condition was introduced forever ago; clean it out.
Signed-off-by: Sage Weil <sage@newdream.net>
* caps
*/
-
-
void Inode::get_cap_ref(int cap)
{
int n = 0;
// Mutex::Locker l(client_lock);
assert(client_lock.is_locked()); // will be called via dispatch() -> objecter -> ...
Inode *in = (Inode *)oset->parent;
- if (in)
- _flushed(in);
+ assert(in);
+ _flushed(in);
}
void Client::_flushed(Inode *in)