]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Btrfs: Remove offset field from struct btrfs_extent_ref
authorYan Zheng <zheng.yan@oracle.com>
Thu, 9 Oct 2008 15:46:24 +0000 (11:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 9 Oct 2008 15:46:24 +0000 (11:46 -0400)
commit3bb1a1bc42f2ae9582c28adf620484efcd4da38d
tree4e65ee859e73ea9558e33a02ba10e1d9d54756f3
parenta76a3cd40c1127ca199d4f7f37bf0d541bf44eb2
Btrfs: 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 references to file extent
are recorded explicitly. We can scan these tree leaves very quickly, so the
offset field is not required.

This patch also makes the back reference system check the objectid
when extents are in deleting.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/print-tree.c
fs/btrfs/tree-log.c