Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1598848
| From | Marek Vasut <marek.vasut@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices |
| Date | 2017-03-13 06:10 +0100 |
| Message-ID | <tkqp4-3Rm-5@gated-at.bofh.it> (permalink) |
| References | <tduH8-2Pq-9@gated-at.bofh.it> <tfqSK-4fZ-21@gated-at.bofh.it> <tg7El-dA-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 03/01/2017 05:14 AM, lepton wrote: > If checking some calling side, the len is from cache_size of struct > mtdblk_dev, it's defined as unsigned int now. So it's not 64bit yet. Ummm ... since you're top-posting, I have no clue which part do you refer to , sorry. > BTW, seems it's just block size (512) at some other calling side. > > (Sorry for previous same content email, just found out it's html > format and rejected by mail list) > > On Mon, Feb 27, 2017 at 1:31 AM, Marek Vasut <marek.vasut@gmail.com> wrote: >> On 02/22/2017 03:15 AM, Lepton Wu wrote: >>> 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.net@gmail.com> >>> --- >>> Changes in v2: >>> - Make the commit message more clearer and fix some format issues. >>> >>> drivers/mtd/mtdblock.c | 35 ++++++++++++++++++----------------- >>> drivers/mtd/mtdblock_ro.c | 4 ++-- >>> 2 files changed, 20 insertions(+), 19 deletions(-) >>> >>> diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c >>> index bb4c14f83c75..373c0edca803 100644 >>> --- a/drivers/mtd/mtdblock.c >>> +++ b/drivers/mtd/mtdblock.c >>> @@ -61,8 +61,8 @@ static void erase_callback(struct erase_info *done) >>> wake_up(wait_q); >>> } >>> >>> -static int erase_write (struct mtd_info *mtd, unsigned long pos, >>> - int len, const char *buf) >>> +static int erase_write(struct mtd_info *mtd, loff_t pos, int len, >>> + const char *buf) >> >> Can the length be 64bit too now ? >> >> [...] >> >> -- >> Best regards, >> Marek Vasut -- Best regards, Marek Vasut
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices lepton <ytht.net@gmail.com> - 2017-03-01 09:20 +0100 Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices Marek Vasut <marek.vasut@gmail.com> - 2017-03-13 06:10 +0100
csiph-web