aboutsummaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2015-08-12 15:12:09 +0100
committerBen Hutchings <ben@decadent.org.uk>2015-10-13 03:46:03 +0100
commita11117c7b36d53cfd18c4d211ce30a4419ee477d (patch)
treedfb3d2a0e6a33fcca2febf10f5a2aa069c707fe3 /fs/super.c
parentbc3356a8b8dedacf18cd8662b06cb4282bb051e9 (diff)
downloadkernel_samsung_smdk4412-a11117c7b36d53cfd18c4d211ce30a4419ee477d.zip
kernel_samsung_smdk4412-a11117c7b36d53cfd18c4d211ce30a4419ee477d.tar.gz
kernel_samsung_smdk4412-a11117c7b36d53cfd18c4d211ce30a4419ee477d.tar.bz2
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> [bwh: Backported to 3.2: - Drop change to remove_one() - Remove const pointer qualifications] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions