mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Zhihui Zhang <zzhsuny@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: idea about internal fragmentation in Btrfs
Date: Sat, 19 Jun 2010 10:51:22 +0200	[thread overview]
Message-ID: <87k4pvo16d.fsf@basil.nowhere.org> (raw)
In-Reply-To: <AANLkTilWguh4IrDHVgtTxjoiAeSy23SK_M1dWapgvSDt@mail.gmail.com> (Zhihui Zhang's message of "Fri, 18 Jun 2010 14:12:22 -0400")

Zhihui Zhang <zzhsuny@gmail.com> writes:

> I wish Btrfs well, so I would venture an idea for this specific case
> mentioned by Edward Shishkin today.
>
> Everyone knows that B-tree has internal and leaf nodes.  Can we make
> the root as the leaf?  In other words, if you
> create a 2K file, the B-tree will have only one node, which is both
> the root and the leaf. Of course, you need some flag to
> say this is a "degenerated" form of B-tree. Please cc me if you want
> my response.

You need to copy linux-btrfs to reach btrfs developers.
Ccs added

The problem with your idea is that on btrfs there's only 
a single tree for the whole fs (or whole snapshot rather)
So it would only work for a single file because there's
only a single root.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.

  reply	other threads:[~2010-06-19  8:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18 18:12 Zhihui Zhang
2010-06-19  8:51 ` Andi Kleen [this message]
2010-06-19 20:20   ` Zhihui Zhang

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=87k4pvo16d.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zzhsuny@gmail.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

Powered by JetHome