From: Nikita Danilov <nikita@clusterfs.com>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: Lazy block allocation and block_prepare_write?
Date: Tue, 19 Apr 2005 19:55:03 +0400 [thread overview]
Message-ID: <m1d5sq223s.fsf@clusterfs.com> (raw)
In-Reply-To: <1113921972.26913.417.camel@dyn318077bld.beaverton.ibm.com> (Badari Pulavarty's message of "19 Apr 2005 07:46:12 -0700")
Badari Pulavarty <pbadari@us.ibm.com> writes:
> On Tue, 2005-04-19 at 04:22, Nikita Danilov wrote:
>> Badari Pulavarty <pbadari@us.ibm.com> writes:
>>
>> [...]
>>
>> >
>> > Yes. Its possible to do what you want to. I am currently working on
>> > adding "delayed allocation" support to ext3. As part of that, We
>>
>> As you most likely already know, Alex Thomas already implemented delayed
>> block allocation for ext3.
>
> Yep. I reviewed Alex Thomas patches for delayed allocation. He handled
> all the cases in his code and did NOT use any mpage* routines to do
> the work. I was hoping to change the mpage infrastructure to handle
> these, so that every filesystem doesn't have to do their thing.
>
Just keep in mind that filesystem != ext3. :-) Generic support makes
sense only when it is usable by multiple file systems. This is not
always possible, e.g., there is no "generic block allocator" for
precisely the same reason: disk space allocation policies are tightly
intertwined with the rest of file system internals.
>
>>
>> >
>> > In order to do the correct accounting, we need to mark a page
>> > to indicate if we reserved a block or not. One way to do this,
>> > to use page->private to indicate this. But then, all the generic
>>
>> I believe one can use PG_mappedtodisk bit in page->flags for this
>> purpose. There was old Andrew Morton's patch that introduced new bit
>> (PG_delalloc?) for this purpose.
>
> That would be good. But I don't feel like asking for a bit in page
> if there is a way to get around it.
Clarification: PG_mappedtodisk is already here, it seems you can reuse
this already existing bit to implement delayed allocation support.
>
[...]
>> >
> Need to think some more. I guess you thought about this more than you
> do :)
>
> Thanks,
> Badari
>
Nikita.
next prev parent reply other threads:[~2005-04-19 15:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 0:54 Lazy block allocation and block_prepare_write? Martin Jambor
2005-04-19 3:01 ` Badari Pulavarty
2005-04-19 10:10 ` Alex Tomas
2005-04-19 14:48 ` Badari Pulavarty
2005-04-19 15:04 ` Alex Tomas
2005-04-19 15:00 ` Badari Pulavarty
2005-04-19 15:20 ` Alex Tomas
2005-04-19 11:22 ` Nikita Danilov
2005-04-19 14:46 ` Badari Pulavarty
2005-04-19 15:55 ` Nikita Danilov [this message]
2005-04-19 16:06 ` Alex Tomas
2005-04-19 16:59 ` Badari Pulavarty
2005-04-19 17:08 ` Mingming Cao
2005-04-19 18:45 ` Nikita Danilov
2005-04-20 0:00 ` Bryan Henderson
2005-04-19 20:41 ` Martin Jambor
2005-04-20 14:52 ` Badari Pulavarty
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=m1d5sq223s.fsf@clusterfs.com \
--to=nikita@clusterfs.com \
--cc=linux-fsdevel@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).