From: Christoph Hellwig Subject: fscache review comments, part 2 Date: Thu, 28 Sep 2006 17:45:38 +0100 Message-ID: <20060928164538.GB3497@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:35244 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S1751279AbWI1QqC (ORCPT ); Thu, 28 Sep 2006 12:46:02 -0400 To: dhowells@redhat.com, akpm@osdl.org, gregkh@suse.de Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org This is about the actual fscache code. - there's a bunch of gfp_t-related sparse warnings. I'll send a patch to fix them as a followup to this mail. - the Kconfig hackery is rather ugly. I'd rather express the depencies with selects in this case - the filesystem fscache options select FSCACHE, as does the cachefiles module. Patch will be sent later. - include/linux/fscache.h is an utter mess :) Please reorder the file so there's just a single big #if defined(CONFIG_FSCACHE) || defined(CONFIG_FSCACHE_MODULE) #else #endif block. Doing that will also allow to drop a lot of the __fscache function and directly stub out the non-__ versions. - please remove the #ifdef CONFIG_DEBUG_SLAB BUG_ONs from cookie.c, driver should never deal with slab or slab debugging internals. - various statically initialize structs in main.c set members to NULL, which is not required and should be removed - IIRC k* release callbacks must not be NULL. Please check which Greg on your kset usage - please adjust your comment style to normal linux style. kernel-doc headers for functions please, and no /********/ full line comments - maybe fscache should provide a generic ->mkwrite operation or even a set of otherwise filemap-based vm_operations for it's client filesystems?