diff options
author | Marvin Borner | 2021-05-20 20:05:02 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-20 20:05:02 +0200 |
commit | 59de0af0cff96182d3e30ab453bc9763a6635947 (patch) | |
tree | a6b66aaebb53b94eba46aefce3c6355e8c5cb145 /kernel/features | |
parent | 32a5fcaa8e082b7c27f46f1adf577ceb3d71ba7d (diff) |
Improved IDE/ATA drivers
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/fs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/features/fs.c b/kernel/features/fs.c index f59d20c..7d62c61 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -214,7 +214,7 @@ CLEAR void vfs_install(void) * EXT2 */ -static void ext2_buffer_read(u32 block, void *buf, struct vfs_dev *dev) +INLINE static void ext2_buffer_read(u32 block, void *buf, struct vfs_dev *dev) { dev->read(buf, block * SECTOR_COUNT, SECTOR_COUNT, dev); } @@ -446,9 +446,6 @@ static res ext2_stat(const char *path, struct stat *buf, struct vfs_dev *dev) if (ext2_find_inode_by_path(path, &in, dev) != &in) return -ENOENT; - //u32 num_blocks = in.blocks / (BLOCK_SIZE / SECTOR_SIZE); - //u32 sz = BLOCK_SIZE * num_blocks; - stac(); buf->dev_id = dev->id; buf->size = in.size; |