summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2012-12-05 08:06:38 +0000
committerTom Rini <trini@ti.com>2012-12-07 08:47:52 -0700
commita1f41f1a55230dcd2e195f193809901fc4a082cf (patch)
tree9dfba61dde7a85b22e0d8bf86417429d90e58afc
parent32fc16d7e7a81816ce247b7cd70c94f3210a228b (diff)
fs:ext4:write: Store block device descriptor in file system structure
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>
-rw-r--r--fs/ext4/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/dev.c b/fs/ext4/dev.c
index 1596a92b9ad..464a67d5319 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)