[PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-02-21 Thread Lepton Wu
Change to use loff_t instead of unsigned long in some functions to make sure mtdblock can handle offset bigger than 4G in 32 bits mode. Signed-off-by: Lepton Wu <ytht@gmail.com> --- Changes in v2: - Make the commit message more clearer and fix some format issues. drivers/mtd/mtdb

[PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-02-21 Thread Lepton Wu
Change to use loff_t instead of unsigned long in some functions to make sure mtdblock can handle offset bigger than 4G in 32 bits mode. Signed-off-by: Lepton Wu --- Changes in v2: - Make the commit message more clearer and fix some format issues. drivers/mtd/mtdblock.c| 35

[PATCH] Make mtdblock can handle partition bigger than 4G.

2017-02-17 Thread Lepton Wu
Signed-off-by: Lepton Wu <ytht@gmail.com> --- drivers/mtd/mtdblock.c| 33 + drivers/mtd/mtdblock_ro.c | 4 ++-- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c index bb4c14

[PATCH] Make mtdblock can handle partition bigger than 4G.

2017-02-17 Thread Lepton Wu
Signed-off-by: Lepton Wu --- drivers/mtd/mtdblock.c| 33 + drivers/mtd/mtdblock_ro.c | 4 ++-- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c index bb4c14f83c75..3d2da76287a7 100644