Displaying 2 results from an estimated 2 matches for "update_block".
2005 Nov 25
0
Using link_to_remote/remote_function outside of a Controller
...call looks like this:
################################################################
#I uses remote_function within a select_tag funtion call:
remote_function(:update => values_id,
:with => "val=+value",
:url => {:action => :update_blocks }))
################################################################
There might be a logical explanation to this behaviour but I cant figure
it out! Any help is appreciated!
/Rick
--
Posted via http://www.ruby-forum.com/.
2009 May 12
0
[PATCH 1/2] btrfs-progs: mixed back ref support
...int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
+ struct extent_buffer *buf, int record_parent)
+{
+ return __btrfs_mod_ref(trans, root, buf, record_parent, 0);
}
static int write_one_cache_group(struct btrfs_trans_handle *trans,
@@ -1224,6 +1346,22 @@ static int update_block_group(struct btr
u64 start;
u64 end;
+ /* block accounting for super block */
+ old_val = btrfs_super_bytes_used(&info->super_copy);
+ if (alloc)
+ old_val += num_bytes;
+ else
+ old_val -= num_bytes;
+ btrfs_set_super_bytes_used(&info->super_copy, old_val);
+
+ /* block accou...