From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [84.204.75.166] (helo=shelob.oktetlabs.ru) by canuck.infradead.org with esmtps (Exim 4.54 #1 (Red Hat Linux)) id 1EoJeD-0002EX-U7 for linux-mtd@lists.infradead.org; Mon, 19 Dec 2005 06:57:50 -0500 Message-ID: <43A6A014.40809@yandex.ru> Date: Mon, 19 Dec 2005 14:57:08 +0300 From: "Artem B. Bityutskiy" MIME-Version: 1.0 To: zhao forrest References: In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org Subject: Re: A question about frag merge in JFFS2 List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , zhao forrest wrote: > What will happen for the following case in JFFS2? > 1 A process write small frags to flash through JFFS2, > for example the frag length is 15 bytes. > 2 after some time, when GC is triggered, how merge operation > proceed? Will GC merge as many frags as possible? It will merge as many frags as it is needed to form a 4K (pristine) frag. In case of 15 byte frags it is 4K/15 (+1) frags. -- Best Regards, Artem B. Bityutskiy, St.-Petersburg, Russia.