forked from Bananymous/banan-os
All: Cleanup all files
Add newline to end of files and remove whitespace from end of lines
This commit is contained in:
@@ -135,4 +135,4 @@ namespace Kernel
|
||||
return next_dev++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -503,4 +503,4 @@ namespace Kernel
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -807,4 +807,4 @@ needs_new_block:
|
||||
return BAN::Error::from_errno(ENOENT);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,4 +153,4 @@ namespace Kernel
|
||||
return has_data_impl();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,4 +82,4 @@ namespace Kernel
|
||||
return buffer.size();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace Kernel
|
||||
PageTable::with_fast_page(inode_location.paddr, [&] {
|
||||
inode_info = PageTable::fast_page_as_sized<TmpInodeInfo>(inode_location.index);
|
||||
});
|
||||
|
||||
|
||||
auto inode = TRY(TmpInode::create_from_existing(*this, ino, inode_info));
|
||||
TRY(m_inode_cache.insert(ino, inode));
|
||||
return inode;
|
||||
@@ -85,7 +85,7 @@ namespace Kernel
|
||||
void TmpFileSystem::remove_from_cache(BAN::RefPtr<TmpInode> inode)
|
||||
{
|
||||
LockGuard _(m_lock);
|
||||
|
||||
|
||||
ASSERT(m_inode_cache.contains(inode->ino()));
|
||||
m_inode_cache.remove(inode->ino());
|
||||
}
|
||||
|
||||
@@ -392,7 +392,7 @@ namespace Kernel
|
||||
|
||||
if (result == 0)
|
||||
return BAN::Error::from_errno(ENOENT);
|
||||
|
||||
|
||||
auto inode = TRY(m_fs.open_inode(result));
|
||||
return BAN::RefPtr<Inode>(inode);
|
||||
}
|
||||
@@ -406,13 +406,13 @@ namespace Kernel
|
||||
}
|
||||
|
||||
auto block_index = this->block_index(data_block_index);
|
||||
|
||||
|
||||
list->entry_count = 0;
|
||||
|
||||
// if we reach a non-allocated block, it marks the end
|
||||
if (!block_index.has_value())
|
||||
return {};
|
||||
|
||||
|
||||
auto* dirp = list->array;
|
||||
|
||||
const size_t byte_count = BAN::Math::min<size_t>(size() - data_block_index * blksize(), blksize());
|
||||
|
||||
@@ -198,4 +198,4 @@ namespace Kernel
|
||||
return file;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user