From: Josef Bacik Date: Wed, 19 Mar 2014 17:35:14 +0000 (-0400) Subject: Btrfs: take into account total references when doing backref lookup X-Git-Tag: v3.15-rc1~96^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4485386853454f184235c8a973b29fa7fa522eb1;p=pandora-kernel.git Btrfs: take into account total references when doing backref lookup I added an optimization for large files where we would stop searching for backrefs once we had looked at the number of references we currently had for this extent. This works great most of the time, but for snapshots that point to this extent and has changes in the original root this assumption falls on it face. So keep track of any delayed ref mods made and add in the actual ref count as reported by the extent item and use that to limit how far down an inode we'll search for extents. Thanks, Reportedy-by: Hugo Mills Signed-off-by: Josef Bacik Reported-by: Hugo Mills Tested-by: Hugo Mills Signed-off-by: Chris Mason --- Reading git-diff-tree failed