]> git.sur5r.net Git - u-boot/commitdiff
fs:ext4:write: Store block device descriptor in file system structure
authorŁukasz Majewski <l.majewski@samsung.com>
Wed, 5 Dec 2012 08:06:38 +0000 (08:06 +0000)
committerTom Rini <trini@ti.com>
Fri, 7 Dec 2012 15:47:52 +0000 (08:47 -0700)
The device block descriptor (block_dev_desc_t) )shall be stored at
ext4 early code (at ext4fs_set_blk_dev in this case) to be available
for latter use (like put_ext4()).

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
fs/ext4/dev.c

index 1596a92b9ada611fd6889741f5b5d421b290f0fc..464a67d5319cf771da2aad2036fb5abf46a3e42a 100644 (file)
@@ -52,6 +52,7 @@ void ext4fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info)
        part_info = info;
        part_offset = info->start;
        get_fs()->total_sect = (info->size * info->blksz) / SECTOR_SIZE;
+       get_fs()->dev_desc = rbdd;
 }
 
 int ext4fs_devread(int sector, int byte_offset, int byte_len, char *buf)