From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [PATCH 4/12: eCryptfs] Main module functions Date: Wed, 2 Nov 2005 22:02:36 -0800 Message-ID: <20051103060236.GB5044@kroah.com> References: <20051103033220.GD2772@sshock.rn.byu.edu> <20051103034929.GD3005@sshock.rn.byu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, mike@halcrow.us, mhalcrow@us.ibm.com, mcthomps@us.ibm.com, yoder1@us.ibm.com Return-path: To: Phillip Hellewell Content-Disposition: inline In-Reply-To: <20051103034929.GD3005@sshock.rn.byu.edu> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Nov 02, 2005 at 08:49:29PM -0700, Phillip Hellewell wrote: > +#ifdef HAVE_CONFIG_H > +# include > +#endif /* HAVE_CONFIG_H */ What is this here for? > +#include > +#include net/ after linux/ please. Why do you need sock.h anyway? > +/** > + * Module parameter that defines the ecryptfs_verbosity level. > + */ > +#define VERBOSE_DUMP 9 > +#ifdef DEBUG > +int ecryptfs_verbosity = VERBOSE_DUMP; > +#else > +int ecryptfs_verbosity = 1; > +#endif > +module_param(ecryptfs_verbosity, int, 1); I don't think you want a "1" here, do you? Hint, it's not doing what you think it is doing... > +void __ecryptfs_kfree(void *ptr, const char *fun, int line) > +{ > + if (unlikely(ECRYPTFS_ENABLE_MEMORY_TRACING)) > + ecryptfs_printk_release(ptr, fun, line); > + kfree(ptr); > +} > + > +void *__ecryptfs_kmalloc(size_t size, unsigned int flags, const char *fun, > + int line) Don't have wrappers for all of the common kernel functions, just call them directly. thanks, greg k-h