]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: backref, only search backref entries from leaves of the same root
authorethanwu <ethanwu@synology.com>
Fri, 7 Feb 2020 09:38:17 +0000 (17:38 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:40 +0000 (17:01 +0100)
commit57f7d9fc2c7133cfea4fd79c6057ad35e2a57be9
tree5f0b20b8464113a5508a6f35baa2e5503a4cf5b2
parenta63e6864df86b79e9da1ca40a78e83f920d64c90
btrfs: backref, only search backref entries from leaves of the same root

We could have some nodes/leaves in subvolume whose owner are not the
that subvolume. In this way, when we resolve normal backrefs of that
subvolume, we should avoid collecting those references from these blocks.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: ethanwu <ethanwu@synology.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c