aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r--kernel/features/fs.c5
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;