On Mon, Mar 13, 2017 at 03:52:16PM +0800, Qu Wenruo wrote:
> +             /*
> +              * TODO: To also modify reserved->ranges_reserved to reflect

No new TODOs in the code please.

> +              * the modification.
> +              *
> +              * However as long as we free qgroup reserved according to
> +              * EXTENT_QGROUP_RESERVED, we won't double free.
> +              * So not need to rush.
> +              */
> +             ret = clear_record_extent_bits(&BTRFS_I(inode)->io_failure_tree,
> +                             free_start, free_start + free_len - 1,
> +                             EXTENT_QGROUP_RESERVED, &changeset);
> +             if (ret < 0)
> +                     goto out;
> +             freed += changeset.bytes_changed;
> +     }
> +     btrfs_qgroup_free_refroot(root->fs_info, root->objectid, freed);
> +     ret = freed;
> +out:
> +     extent_changeset_release(&changeset);
> +     return ret;
> +}
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to