mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Mingming Cao <cmm@us.ibm.com>,
	Badari Pulavarty <pbadari@us.ibm.com>,
	Ram Pai <linuxram@us.ibm.com>, Stephen Tweedie <sct@redhat.com>
Subject: Re: [Patch 4/6]: ext3 reservations: Turn ext3 per-sb reservations list into an rbtree.
Date: 08 Sep 2004 19:05:14 +0100	[thread overview]
Message-ID: <1094666713.1985.181.camel@sisko.scot.redhat.com> (raw)
In-Reply-To: <20040907154833.4cc8d7a3.akpm@osdl.org>

Hi,

On Tue, 2004-09-07 at 23:48, Andrew Morton wrote:

> Takes this structure up to 32 bytes on x86.  That's a moderate amount of
> inode bloat for something which is only used when an application currently
> has the inode open for writing.
> 
> Have you given any thought to dynamic allocation of the above?

No, none at all.  <thinks>

We already have an ext3 function that's called on all opens ---
currently it checks nothing except O_LARGEFILE, but it's an easy and
obvious place where we could set up the may-write bits.

We'd have to take special care with directories, and potentially with
xattrs, but I don't see any great problems with doing it.

> And if we were to do that, there are a few things which we could move out
> of the ext3 in-core inode and into the above structure, such as
> i_next_alloc_block and i_next_alloc_goal.

Yep.

> Does the reservation code work for directory growth, btw?

Yes, it should be hidden inside the allocation code, and should work
straight out of the box for directories.  But thinking about that,
there's at least one obvious difference that we need to worry about:
there's no "close" on directories to indicate when we've stopped
extending the dir, and can discard the reservation.

That shouldn't lead to spurious ENOSPC, but might lead to suboptimal
layout on full filesystems if we have reserved all the free space and
have to fall back to the old allocation mechanism.

--Stephen


  reply	other threads:[~2004-09-08 18:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07 13:02 Stephen Tweedie
2004-09-07 22:48 ` Andrew Morton
2004-09-08 18:05   ` Stephen C. Tweedie [this message]
2004-09-08 18:55     ` Mingming Cao
2004-09-15  0:20 ` [Patch 1/2]: ext3 reservation window size increase incorrectly fix Mingming Cao
2004-09-15  0:20 ` [Patch 2/2]: ext3 reservations window allocation fix Mingming Cao

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=1094666713.1985.181.camel@sisko.scot.redhat.com \
    --to=sct@redhat.com \
    --cc=akpm@osdl.org \
    --cc=cmm@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxram@us.ibm.com \
    --cc=pbadari@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®