xfs
[Top] [All Lists]

Re: [PATCH 00/12 v3] Remove number of macros from xfs_buf.h

To: Alex Elder <aelder@xxxxxxx>
Subject: Re: [PATCH 00/12 v3] Remove number of macros from xfs_buf.h
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 25 Jul 2011 16:26:38 -0400
Cc: Chandra Seetharaman <sekharan@xxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <1311615418.2914.57.camel@doink>
References: <20110722233933.14612.65879.sendpatchset@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1311615418.2914.57.camel@doink>
User-agent: Mutt/1.5.21 (2010-09-15)
On Mon, Jul 25, 2011 at 12:36:58PM -0500, Alex Elder wrote:
> I forgot to mention before that I got some
> feedback that removing these macros affects
> portability to other platforms (BSD specifically).

Personally I don't really like the way how the BSD port bolted the XFS
buffer use onto the BSD buffer cache.  While the BSD buffer cache is
quite a bit closer to the original IRIX buffer cache model than the 
Linux buffer cache, I think trying to reuse it is just as bad an idea as
partially using the Linux page cache.  Russell might be able to chime
in on the current state of the FreeBSD XFS port, but last time I checked
it was in a pretty minimal state, thus not even exercising the nasty
sides of the buffer cache.  If it wants to be full blown it should just
adadpt and use the current xfs_buf.c code, which really isn't that
Linux specific - sure it uses the Linux memory allocators, shrinkers
and the rbtree library, but it's a standalone piece of code with it's
own algorithms that have proven to be much better than the existing
generic OS buffer caches but catering to the specific XFS needs.

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