On Thu, Oct 02, 2014 at 02:50:39PM -0400, Josef Bacik wrote:
+static int repair_inode_backrefs(struct btrfs_root *root,
+ struct inode_record *rec,
+ struct cache_tree *inode_cache)
+{
+ struct btrfs_trans_handle *trans;
+
I'm redoing this patch a bit so don't take it yet. Thanks,
Josef
David Sterba dste...@suse.cz wrote:
On Thu, Oct 02, 2014 at 02:50:39PM -0400, Josef Bacik wrote:
+static int repair_inode_backrefs(struct btrfs_root *root,
+ struct inode_record *rec,
+
If we have an inode backref entry then we know enough to add back a missing dir
index. When messing with the inode backrefs we need to do all of that first
before we process the inode recs themselves as we may clear errors on the inode
recs as we fix the directory indexes. This adds the