All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: David Chinner <dgc@sgi.com>
Cc: Nathan Scott <nathans@sgi.com>, xfs@oss.sgi.com
Subject: Re: [PATCH] kill no-op buf macros
Date: Tue, 08 Aug 2006 21:43:49 -0500	[thread overview]
Message-ID: <44D94BE5.7020503@sandeen.net> (raw)
In-Reply-To: <20060809012444.GS2114946@melbourne.sgi.com>

David Chinner wrote:
> On Mon, Jul 31, 2006 at 09:08:15AM +1000, Nathan Scott wrote:
>> On Sat, Jul 29, 2006 at 10:41:09PM -0500, Eric Sandeen wrote:
>>> It looks like these macros are not particularly interesting... this patch kills 
>>> them.
>> Hmm, I'm not sure about some of these..
>>
>>> #define XFS_BUF_BUSY(bp)	do { } while (0)
>>> #define XFS_BUF_ISBUSY(bp)	(1)
>> This ones used on 2.4, I'd like to get Daves thoughts on whether
>> we do the right thing here based on his buffer cache fu.
> 
> XFS_BUF_ISBUSY() is only ever used in ASSERT() statements, so I
> think that can go. On 2.4:
> 
> #define XFS_BUF_BUSY(bp) ((bp)->b_flags |= XBF_FORCEIO)
> 
> The XBF_FORCEIO affects how we do partial page I/O on 2.4, but is
> unused on 2.6. On 2.4, if the flag is set, we ignore the
> buffer_uptodate() status of the buffers on the page and re-read all
> the buffers in the range specified.  For writes, we always write all
> the buffers on the page.

Hm, 2.4 just seemed so old by now I forgot all about it :)  Sorry about that, 
thanks for the comments, I'll re-jigger taking this (and the rest of your 
comments) into account.

Thanks,

-Eric

      reply	other threads:[~2006-08-09  2:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-30  3:41 [PATCH] kill no-op buf macros Eric Sandeen
2006-07-30 23:08 ` Nathan Scott
2006-07-31  0:25   ` Eric Sandeen
2006-07-31  4:03   ` Eric Sandeen
2006-08-09  1:24   ` David Chinner
2006-08-09  2:43     ` Eric Sandeen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44D94BE5.7020503@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=dgc@sgi.com \
    --cc=nathans@sgi.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.