Btrfs: Add missing hunk from Yan Zheng's cache reclaim patch
authorChris Mason <chris.mason@oracle.com>
Thu, 31 Jul 2008 13:46:18 +0000 (09:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c

index 37ca8df30c30280e3f0f6d619ff555362218c161..4765248000fd2be988078a2850e876202d30f490 100644 (file)
@@ -1054,6 +1054,7 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
                        goto out;
                }
 
+               ref->root_gen = root->root_key.offset;
                ref->bytenr = buf->start;
                ref->owner = btrfs_header_owner(buf);
                ref->generation = btrfs_header_generation(buf);