Btrfs-progs: extend the extent cache for the device extent
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Jul 2013 13:25:15 +0000 (21:25 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 3 Jul 2013 18:06:54 +0000 (14:06 -0400)
commit17793e3e6a49946d70fd6e3291f6c422bb7f69c4
tree25b27e3fc48ae960de453f3d4bc0d5467013edf5
parentff04981b3fffdc04bca324949545bd9545d86ab3
Btrfs-progs: extend the extent cache for the device extent

As we know, btrfs can manage several devices in the same fs, so [offset, size]
is not sufficient for unique identification of an device extent, we need the
device id to identify the device extents which have the same offset and size,
but are not in the same device. So, we added a member variant named objectid
into the extent cache, and introduced some functions to make the extent cache
be suitable to manage the device extent.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-check.c
extent-cache.c
extent-cache.h
extent_io.c
volumes.c