(as this is going to be merged into mainline..)
> +/*
> + * calls iterate() for every inode that references the extent identified by
> + * the given parameters. will use the path given as a parameter and return it
> + * released.
> + * when the iterator function returns a non-zero value, iteration stops.
> + */
> +int iterate_extent_inodes(struct btrfs_fs_info *fs_info,
> + struct btrfs_path *path,
> + u64 extent_item_objectid,
> + u64 extent_offset,
> + iterate_extent_inodes_t *iterate, void *ctx)
While trying to use this API, I found there's a big defect in this function.
fs_tree 1 fs_tree 2
\ /
\ /
\ /
\ /
node
|
|
leaf (EXTENT_DATA item)
In the above case, the function will find only 1 reference.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html