* Re: idea about internal fragmentation in Btrfs [not found] <AANLkTilWguh4IrDHVgtTxjoiAeSy23SK_M1dWapgvSDt@mail.gmail.com> @ 2010-06-19 8:51 ` Andi Kleen 2010-06-19 20:20 ` Zhihui Zhang 0 siblings, 1 reply; 2+ messages in thread From: Andi Kleen @ 2010-06-19 8:51 UTC (permalink / raw) To: Zhihui Zhang; +Cc: linux-kernel, linux-btrfs 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. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: idea about internal fragmentation in Btrfs 2010-06-19 8:51 ` idea about internal fragmentation in Btrfs Andi Kleen @ 2010-06-19 20:20 ` Zhihui Zhang 0 siblings, 0 replies; 2+ messages in thread From: Zhihui Zhang @ 2010-06-19 20:20 UTC (permalink / raw) To: Andi Kleen; +Cc: linux-kernel, linux-btrfs Makes perfect sense. No wonder some btrfs folks used to work on reiserfs/4. I hope a solution can be or has been found. On Sat, Jun 19, 2010 at 4:51 PM, Andi Kleen <andi@firstfloor.org> wrote= : > 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. =A0Can we ma= ke >> the root as the leaf? =A0In 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. > -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-19 20:20 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <AANLkTilWguh4IrDHVgtTxjoiAeSy23SK_M1dWapgvSDt@mail.gmail.com> 2010-06-19 8:51 ` idea about internal fragmentation in Btrfs Andi Kleen 2010-06-19 20:20 ` Zhihui Zhang
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).