From: OGAWA Hirofumi Subject: Re: [PATCH v6] fat: Batched discard support for fat Date: Tue, 24 May 2011 20:14:38 +0900 Message-ID: <87y61wic4h.fsf@devron.myhome.or.jp> References: <20110328103431.GA22323@july> <201103301620.50263.arnd@arndb.de> <201103301706.36214.arnd@arndb.de> <87wrhgk8lp.fsf@devron.myhome.or.jp> <87r57ok3fp.fsf@devron.myhome.or.jp> <87mxick0zj.fsf@devron.myhome.or.jp> <874o4kjtsy.fsf@devron.myhome.or.jp> Mime-Version: 1.0 Content-Type: text/plain Cc: Kyungmin Park , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Lukas Czerner Return-path: Received: from mail.parknet.co.jp ([210.171.160.6]:58666 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754633Ab1EXLOl (ORCPT ); Tue, 24 May 2011 07:14:41 -0400 In-Reply-To: (Lukas Czerner's message of "Tue, 24 May 2011 12:44:22 +0200 (CEST)") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Lukas Czerner writes: >> No. If you want to trim whole with some chunk like 1GB and periodically >> (IIRC in xfstest), what do? We have to trim until ULLONG_MAX for each >> 1GB? >> >> Thanks. >> > > What ? No, of course not. As I said, just go through 1G worth of filesystem > blocks skipping metadata. However we do have a special case when we > adjust start and len according to the first data block (which is only > the case of 1024B blocksize). > > if (start < first_data_blk) { > len -= first_data_blk - start; > start = first_data_blk; > } > > Which means that we just skip the first block (or whatever first data > block is). And this is the same as skipping metadata. Are you read my email? So, FAT adjust 2 blocks, ext* 1 block, and what is other? The middle was guaranteed as continued? So, which is end of blocks? -- OGAWA Hirofumi