From: Eric Sandeen Subject: Re: [PATCH] fix memory corruption from misinterpreted bad_inode_ops return values Date: Wed, 03 Jan 2007 17:21:47 -0600 Message-ID: <459C3A8B.4040206@sandeen.net> References: <459BF927.2020108@sandeen.net> <20070104101423.06bdd664.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Linux Kernel Mailing List , linux-fsdevel Return-path: Received: from mx1.redhat.com ([66.187.233.31]:45720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932180AbXACXWK (ORCPT ); Wed, 3 Jan 2007 18:22:10 -0500 To: Stephen Rothwell In-Reply-To: <20070104101423.06bdd664.sfr@canb.auug.org.au> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Stephen Rothwell wrote: > Hi Eric, > > On Wed, 03 Jan 2007 12:42:47 -0600 Eric Sandeen wrote: >> So here's the first stab at fixing it. I'm sure there are style points >> to be hashed out. Putting all the functions as static inlines in a header >> was just to avoid hundreds of lines of simple function declarations before >> we get to the meat of bad_inode.c, but it's probably technically wrong to >> put it in a header. Also if putting a copyright on that trivial header file >> is going overboard, just let me know. Or if anyone has a less verbose >> but still correct way to address this problem, I'm all ears. > > Since the only uses of these functions is to take their addresses, the > inline gains you nothing Hm, yes of course... my fingers just automatically type "static inline" in header files I guess. :) > and since the only uses are in the one file, you > should just define them in that file. Ok, will do. That seems to be the consensus. Thanks, -Eric