Displaying 3 results from an estimated 3 matches for "btrfs_clear_bit_hook".
2010 Mar 24
1
Possible race in btrfs
.../btrfs/inode.c 5422
fs/btrfs/inode.c 1378
The stack traces are
For file line fs/btrfs/inode.c 5422
btrfs_getattr+0x141/0x15e
vfs_getattr+0x47/0xf4
vfs_fstatat+0x43/0x5a
vfs_stat+0x16/0x18
sys_newstat+0x3d/0x75
system_call_fastpath+0x16/0x1b
And for file line fs/btrfs/inode.c 1378
btrfs_clear_bit_hook+0xcc1/0x10f2
clear_state_bit+0x4db/0xa89
clear_extent_bit+0x9e1/0xc86
extent_clear_unlock_delalloc+0x8c/0x1d8
cow_file_range+0x1356/0x1432
run_delalloc_range+0x263/0x1702
__extent_writepage+0x2c4/0x15a8
extent_write_cache_pages.clone.0+0x211/0x33d
extent_writepages+0x243/0x260
btr...
2011 Jul 26
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations
...te_ret)
- btrfs_update_reserved_bytes(block_group,
- bytes, 0, 1);
-
if (ret)
break;
*trimmed += actually_trimmed;
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 0b858d7..ffd0924 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1388,11 +1388,7 @@ static int btrfs_clear_bit_hook(struct inode *inode,
}
if (*bits & EXTENT_DO_ACCOUNTING)
- btrfs_delalloc_release_metadata(inode, len);
-
- if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID
- && do_list)
- btrfs_free_reserved_data_space(inode, len);
+ btrfs_delalloc_release_space(ino...
2011 Jul 27
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations V2
...te_ret)
- btrfs_update_reserved_bytes(block_group,
- bytes, 0, 1);
-
if (ret)
break;
*trimmed += actually_trimmed;
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 0b858d7..ffd0924 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1388,11 +1388,7 @@ static int btrfs_clear_bit_hook(struct inode *inode,
}
if (*bits & EXTENT_DO_ACCOUNTING)
- btrfs_delalloc_release_metadata(inode, len);
-
- if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID
- && do_list)
- btrfs_free_reserved_data_space(inode, len);
+ btrfs_delalloc_release_space(ino...