Kernel: Promote various integers to 64 bits in storage layer

This commit is contained in:
Jean-Baptiste Boric
2021-07-05 21:38:17 +02:00
committed by Andreas Kling
parent f3a3a63b68
commit fdb5367da1
8 changed files with 29 additions and 45 deletions

View File

@@ -60,7 +60,7 @@ public:
virtual void flush_writes() { }
size_t block_size() const { return m_block_size; }
u64 block_size() const { return m_block_size; }
size_t fragment_size() const { return m_fragment_size; }
virtual bool is_file_backed() const { return false; }
@@ -71,14 +71,14 @@ public:
protected:
FS();
void set_block_size(size_t);
void set_fragment_size(size_t);
void set_block_size(u64 size) { m_block_size = size; }
void set_fragment_size(size_t size) { m_fragment_size = size; }
mutable Lock m_lock { "FS" };
private:
unsigned m_fsid { 0 };
size_t m_block_size { 0 };
u64 m_block_size { 0 };
size_t m_fragment_size { 0 };
bool m_readonly { false };
};