]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: introduce the free space B-tree on-disk format
authorOmar Sandoval <osandov@fb.com>
Wed, 30 Sep 2015 03:50:34 +0000 (20:50 -0700)
committerShan Hai <shan.hai@oracle.com>
Wed, 23 Aug 2017 05:26:57 +0000 (13:26 +0800)
commita7b7823982b0927edeee4115614e0a43302bca7f
tree888c0eed2862ec8b5ef23afda86147558dc1e82e
parent4c3dee48898542c908b7dbc241fe915d17be910a
Btrfs: introduce the free space B-tree on-disk format

The on-disk format for the free space tree is straightforward. Each
block group is represented in the free space tree by a free space info
item that stores accounting information: whether the free space for this
block group is stored as bitmaps or extents and how many extents of free
space exist for this block group (regardless of which format is being
used in the tree). Extents are (start, FREE_SPACE_EXTENT, length) keys
with no corresponding item, and bitmaps instead have the
FREE_SPACE_BITMAP type and have a bitmap item attached, which is just an
array of bytes.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Orabug: 26274676

(cherry picked from commit 208acb8c72d7ace6b672b105502dca0bcb050162)
Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/btrfs/ctree.h
include/trace/events/btrfs.h