diff --git a/fs/littlefs/lfs_vfs.c b/fs/littlefs/lfs_vfs.c index b8f8363a95..01f45f5988 100644 --- a/fs/littlefs/lfs_vfs.c +++ b/fs/littlefs/lfs_vfs.c @@ -1023,9 +1023,8 @@ static int littlefs_bind(FAR struct inode *driver, FAR const void *data, fs->cfg.block_count = fs->geo.neraseblocks; fs->cfg.block_cycles = 500; fs->cfg.cache_size = fs->geo.blocksize; - fs->cfg.lookahead_size = - lfs_min(lfs_alignup((fs->cfg.block_count + 7) / 8, 8), - fs->cfg.read_size); + fs->cfg.lookahead_size = lfs_min(lfs_alignup(fs->cfg.block_count, 64) / 8, + fs->cfg.read_size); /* Then get information about the littlefs filesystem on the devices * managed by this driver.