summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2015-08-12 15:12:09 +0100
committerLuis Henriques <luis.henriques@canonical.com>2015-09-03 13:29:48 +0100
commit0829122b28b5f4e493ac28ff4b59151deb2f1d20 (patch)
treefc801c051820f0e17dbfd55474e333d9067746d9 /include
parenteac962572e65ac9185acd5630de488e38dbb87a7 (diff)
dm btree: add ref counting ops for the leaves of top level btrees
commit b0dc3c8bc157c60b1d470163882be8c13e1950af upstream. When using nested btrees, the top leaves of the top levels contain block addresses for the root of the next tree down. If we shadow a shared leaf node the leaf values (sub tree roots) should be incremented accordingly. This is only an issue if there is metadata sharing in the top levels. Which only occurs if metadata snapshots are being used (as is possible with dm-thinp). And could result in a block from the thinp metadata snap being reused early, thus corrupting the thinp metadata snap. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> [ luis: backported to 3.16: - dropped changes to remove_one() as suggested by Mike Snitzer ] Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions