mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01:00 
			
		
		
		
	context: remove the one call to operator vector<> method in BtrfsIoctlLogicalInoArgs
There's only one user of this method. Open-code it so we can kill the method in libcrucible. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -812,7 +812,7 @@ BeesContext::resolve_addr_uncached(BeesAddress addr)
 | 
			
		||||
	// Avoid performance problems - pretend resolve failed if there are too many refs
 | 
			
		||||
	const size_t rv_count = log_ino.m_iors.size();
 | 
			
		||||
	if (rv_count < BEES_MAX_EXTENT_REF_COUNT) {
 | 
			
		||||
		rv.m_biors = log_ino.m_iors;
 | 
			
		||||
		rv.m_biors = vector<BtrfsInodeOffsetRoot>(log_ino.m_iors.begin(), log_ino.m_iors.end());
 | 
			
		||||
	} else {
 | 
			
		||||
		BEESLOGINFO("addr " << addr << " refs " << rv_count << " overflows configured ref limit " << BEES_MAX_EXTENT_REF_COUNT);
 | 
			
		||||
		BEESCOUNT(resolve_overflow);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user