summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2012-05-17 14:43:03 (GMT)
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-05-26 10:17:52 (GMT)
commit976b1908d97bd8cbd024ba7aafaa3fb637ea8e13 (patch)
tree77d53f8b40ea6a1692fbf93bdc2bbc0daf01e85c /fs/btrfs/ctree.h
parentd5c88b735fdf2ef796bb937396dd58dac84e8407 (diff)
downloadlinux-fsl-qoriq-976b1908d97bd8cbd024ba7aafaa3fb637ea8e13.tar.xz
Btrfs: look into the extent during find_all_leafs
Before this patch we called find_all_leafs for a data extent, then called find_all_roots and then looked into the extent to grab the information we were seeking. This was done without holding the leaves locked to avoid deadlocks. However, this can obviouly race with concurrent tree modifications. Instead, we now look into the extent while we're holding the lock during find_all_leafs and store this information together with the leaf list. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions