[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87y63z4s3e.fsf@devron.myhome.or.jp>
Date: Mon, 28 Mar 2011 16:33:25 +0900
From: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To: Kyungmin Park <kmpark@...radead.org>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
Lukas Czerner <lczerner@...hat.com>
Subject: Re: [PATCH v5] fat: Batched discard support for fat
Kyungmin Park <kmpark@...radead.org> writes:
>> Yes. It's what I'm saying. If user wants to trim 0-2 then user will
>> specify 0-2, but this trims only 2. It's not right.
>
> There's similar code at ext4. it adjusts the start and len value if
> given start is less than first_data_blk.
>
> if (start < first_data_blk) {
> len -= first_data_blk - start;
> start = first_data_blk;
> }
Oh, strange design. On this design, user have to know which block is
actually start block per FSes (Yeah, you can still use this without
start block knowledge. But it's bogus). I think it should fix ext4. No?
Thanks.
--
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists