btrfs: relocation: Add basic extent backref related comments for build_backref_tree
authorQu Wenruo <wqu@suse.com>
Tue, 25 Sep 2018 06:37:46 +0000 (14:37 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:35 +0000 (17:23 +0200)
commitfa6ac71524f206c33accfc12294fd35e17478fe0
treeb492ce45628cdf6e4049957e314c86d4b802e206
parent4779cc04248deff676c56ff9f3b2c679388a7d5e
btrfs: relocation: Add basic extent backref related comments for build_backref_tree

fs/btrfs/relocation.c:build_backref_tree() is some code from 2009 era,
although it works pretty fine, it's not that easy to understand.
Especially combined with the complex btrfs backref format.

This patch adds some basic comment for the backref build part of the
code, making it less hard to read, at least for backref searching part.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c