[Top] [All Lists]

Re: [PATCH 06/11] xfs: remove wrappers around b_fspriv

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH 06/11] xfs: remove wrappers around b_fspriv
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 12 Jul 2011 05:15:09 -0400
Cc: Alex Elder <aelder@xxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20110712010257.GL23038@dastard>
References: <20110710204916.856267100@xxxxxxxxxxxxxxxxxxxxxx> <20110710205017.863949257@xxxxxxxxxxxxxxxxxxxxxx> <1310423589.7019.59.camel@doink> <20110712010257.GL23038@dastard>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Jul 12, 2011 at 11:02:57AM +1000, Dave Chinner wrote:
> On Mon, Jul 11, 2011 at 05:33:09PM -0500, Alex Elder wrote:
> > On Sun, 2011-07-10 at 16:49 -0400, Christoph Hellwig wrote:
> > > Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> > 
> > I never did understand exactly why these things
> > were macro-ized, but figured it must have hidden
> > some sort of conditional debug or development aid
> > long ago.  In any case, good riddance.
> It was part of the original Linux port. Both the Irix and Linux XFS
> code was converted to use these XFS_BUF macros. Hence the core XFS
> code was identical on both platforms and easy to move changes from
> Irix to Linux because the macros hid the differences in buffer cache
> implementations.

That was the theory, but these portability changes never got merged
back to IRIX.  On the other hand XFS/Linux actually had two different
buffer implementations in it's early days and the macros allowed
switching between them.  Back then the area was an even bigger mess,
as the buffer cache implementation that survived was called pagebuf,
and used page_buf_/pb_/PB_/ prefixes, which not only got mapped to
various different and often duplicate xfs_buf or similar names.

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