]> 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)
commit8052dcf411b4e4f7d1a1c9afb11b0b3a0433f6e9
tree5f0b20b8464113a5508a6f35baa2e5503a4cf5b2
parent6bc741fe37a4fbc230b91df77d10c9f30d23ee22
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