diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-10-09 11:55:30 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-09 11:55:30 -0400 |
commit | 5986faaf479a38b0ebd2872e880d0bd81481d95b (patch) | |
tree | 3343c6e9b7e6f6f7642dad998da868a39068f96b /utils.c | |
parent | 09ab0365ff14c5481a2b0f3b401666d2fab3d05a (diff) |
Remove offset field from struct btrfs_extent_ref
The offset field in struct btrfs_extent_ref records the position
inside file that file extent is referenced by. In the new back
reference system, tree leaves holding reference to file extent
are recorded explicitly. We can quickly scan these tree leaves, so the
offset field is not required.
This patch also makes the back reference system check the objectid
when extents are being deleted
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -225,7 +225,6 @@ int make_btrfs(int fd, const char *device, const char *label, btrfs_set_ref_root(buf, extent_ref, ref_root); btrfs_set_ref_generation(buf, extent_ref, 1); btrfs_set_ref_objectid(buf, extent_ref, 0); - btrfs_set_ref_offset(buf, extent_ref, 0); btrfs_set_ref_num_refs(buf, extent_ref, 1); nritems++; } |