All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boaz Harrosh <bharrosh@panasas.com>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>,
	Al Viro <viro@ftp.linux.org.uk>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 7/58] new helper: end_writeback()
Date: Wed, 09 Jun 2010 16:50:30 +0300	[thread overview]
Message-ID: <4C0F9C26.60509@panasas.com> (raw)
In-Reply-To: <20100609132018.GZ31073@ZenIV.linux.org.uk>

On 06/09/2010 04:20 PM, Al Viro wrote:
> On Wed, Jun 09, 2010 at 09:02:16AM -0400, Christoph Hellwig wrote:
>> On Tue, Jun 08, 2010 at 11:16:02PM +0100, Al Viro wrote:
>>>
>>> Essentially, the minimal variant of ->evict_inode().  It's
>>> a trimmed-down clear_inode(), sans any fs callbacks.  Once
>>> it returns we know that no async writeback will be happening;
>>> every ->evict_inode() instance should do that once and do that
>>> before doing anything ->write_inode() could interfere with
>>> (e.g. freeing the on-disk inode).
>>
>> Naming seems a bit unfortunate - this really sounds like something
>> in page writeback.  In fact I'd almost bet we had a function with
>> that name there in the past.
>>
>> Care to slap an inode_ prefix on it?
> 
> Ehh...  I'd been tempted to call it end_async or something like that.
> I'm not particulary fond of the name; any better suggestions are welcome.
> 
> The point of what's being done in that function is that it acts as a barrier;
> "wait for async activity to run down; new one won't be started since it's
> already marked I_FREEING".

It was odd for me to. I had to go look at code to understand what it's for.
I would prefer the word "wait" in the name or barrier. eg. wait_writeback.
end_writeback sounds like something you should call from ->write_end

Just my $0.017
Boaz

      reply	other threads:[~2010-06-09 13:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08 22:16 [PATCH 7/58] new helper: end_writeback() Al Viro
2010-06-09 13:02 ` Christoph Hellwig
2010-06-09 13:20   ` Al Viro
2010-06-09 13:50     ` Boaz Harrosh [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=4C0F9C26.60509@panasas.com \
    --to=bharrosh@panasas.com \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    --cc=viro@ftp.linux.org.uk \
    /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.