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. _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs