xfs
[Top] [All Lists]

Re: [PATCH] remove various useless min/max macros

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH] remove various useless min/max macros
From: David Chinner <dgc@xxxxxxx>
Date: Thu, 19 Apr 2007 09:50:56 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20070418175730.GA18315@lst.de>
References: <20070418175730.GA18315@lst.de>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Wed, Apr 18, 2007 at 07:57:30PM +0200, Christoph Hellwig wrote:
> xfs_btree.h has various macros to calculate a min/max after casting
> it's arguments to a specific type.  This can be done much simpler
> by using min_t/max_t with the type as first argument.

Sure, but I NACKed that last October for good reason.

http://marc.info/?t=116116017600003&r=1&w=2

Specifically:

http://marc.info/?l=linux-kernel&m=116122285309389&w=2

I still have no objection to changing the implementation of these
macros or even changing them to non-shouting static inlines but
I don't want them removed....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>