Displaying 2 results from an estimated 2 matches for "update_ret".
Did you mean:
update_ref
2011 Jul 26
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations
...tenr,
- u64 num_bytes, u64 *actual_bytes)
+int btrfs_error_discard_extent(struct btrfs_root *root,
+ struct btrfs_block_group_cache *block_group,
+ u64 bytenr, u64 num_bytes, u64 *actual_bytes)
{
- return btrfs_discard_extent(root, bytenr, num_bytes, actual_bytes);
+ int update_ret = 1;
+ int ret;
+
+ /*
+ * This is just for proper space accounting, we already removed the free
+ * space from the block_group so this is just updating counters.
+ *
+ * XXX this is a little racy, we should be doing this first and then
+ * removing the space, otherwise there is a window where...
2011 Jul 27
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations V2
...tenr,
- u64 num_bytes, u64 *actual_bytes)
+int btrfs_error_discard_extent(struct btrfs_root *root,
+ struct btrfs_block_group_cache *block_group,
+ u64 bytenr, u64 num_bytes, u64 *actual_bytes)
{
- return btrfs_discard_extent(root, bytenr, num_bytes, actual_bytes);
+ int update_ret = 1;
+ int ret;
+
+ /*
+ * This is just for proper space accounting, we already removed the free
+ * space from the block_group so this is just updating counters.
+ *
+ * XXX this is a little racy, we should be doing this first and then
+ * removing the space, otherwise there is a window where...