mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Make FS::block_size a size_t
This commit is contained in:
parent
9cbdd5f01e
commit
de4b7d9c21
Notes:
sideshowbarker
2024-07-19 06:28:51 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/de4b7d9c214 Pull-request: https://github.com/SerenityOS/serenity/pull/2288 Reviewed-by: https://github.com/awesomekling
3 changed files with 5 additions and 5 deletions
|
@ -107,7 +107,7 @@ void FS::lock_all()
|
|||
}
|
||||
}
|
||||
|
||||
void FS::set_block_size(int block_size)
|
||||
void FS::set_block_size(size_t block_size)
|
||||
{
|
||||
ASSERT(block_size > 0);
|
||||
if (block_size == m_block_size)
|
||||
|
|
|
@ -85,20 +85,20 @@ public:
|
|||
|
||||
virtual void flush_writes() {}
|
||||
|
||||
int block_size() const { return m_block_size; }
|
||||
size_t block_size() const { return m_block_size; }
|
||||
|
||||
virtual bool is_file_backed() const { return false; }
|
||||
|
||||
protected:
|
||||
FS();
|
||||
|
||||
void set_block_size(int);
|
||||
void set_block_size(size_t);
|
||||
|
||||
mutable Lock m_lock { "FS" };
|
||||
|
||||
private:
|
||||
unsigned m_fsid { 0 };
|
||||
int m_block_size { 0 };
|
||||
size_t m_block_size { 0 };
|
||||
bool m_readonly { false };
|
||||
};
|
||||
|
||||
|
|
|
@ -742,7 +742,7 @@ Optional<KBuffer> procfs$df(InodeIdentifier)
|
|||
fs_object.add("total_inode_count", fs.total_inode_count());
|
||||
fs_object.add("free_inode_count", fs.free_inode_count());
|
||||
fs_object.add("mount_point", mount.absolute_path());
|
||||
fs_object.add("block_size", fs.block_size());
|
||||
fs_object.add("block_size", static_cast<u64>(fs.block_size()));
|
||||
fs_object.add("readonly", fs.is_readonly());
|
||||
fs_object.add("mount_flags", mount.flags());
|
||||
|
||||
|
|
Loading…
Reference in a new issue