From patchwork Wed Dec 5 18:06:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot, RESEND, 2/4] fs:ext4:write: Store block device descriptor in file system structure Date: Wed, 05 Dec 2012 08:06:38 -0000 From: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 203913 Message-Id: <1354730801-29898-3-git-send-email-l.majewski@samsung.com> To: u-boot@lists.denx.de Cc: "pintu.k@samsung.com" , Kyungmin Park , IQBAL SHAREEF , Tom Rini 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 Signed-off-by: Kyungmin Park --- fs/ext4/dev.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/ext4/dev.c b/fs/ext4/dev.c index 1596a92..464a67d 100644 --- a/fs/ext4/dev.c +++ b/fs/ext4/dev.c @@ -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)