From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pro20.abac.com ([66.226.64.21]) by canuck.infradead.org with esmtp (Exim 4.43 #1 (Red Hat Linux)) id 1CpAN2-0002WH-Mz for linux-mtd@lists.infradead.org; Thu, 13 Jan 2005 14:11:04 -0500 Date: Thu, 13 Jan 2005 11:10:36 -0800 From: Brian Fox To: "Artem B. Bityuckiy" , Jared Hulbert Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Cc: David Woodhouse , MTD List Subject: Re: JFFS3 & performance List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 1/13/05 10:55 AM, "Artem B. Bityuckiy" wrote: > May be smth like: > #ifdef I_AM_NOT_PARANOID > static inline uint32_t > checksum(void *buf) > { > return 0; > } Well, David says a mount time option, which means it should be available all the time, and on a per mount basis. So, why not have a checksum function jump table, per filesystem, and have all of the callers use that? Thanks, Brian -- ------------------------------------------------------------------- Brian J. Fox netCelerant, Inc CTO www.netCelerant.com bfox@netCelerant.com Ph: (805) 275-0214 -------------------------------------------------------------------