Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139024
b: refs/heads/master
c: cf47b8f
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and Ingo Molnar committed Jan 15, 2009
1 parent 4343640 commit b831437
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac6e60ee405aa3bf718f7fe4cb01b7ee0b8877ec
refs/heads/master: cf47b8f3d96b0b8b10b557444a28b3ca4024ff82
10 changes: 0 additions & 10 deletions trunk/fs/btrfs/locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@

int btrfs_tree_lock(struct extent_buffer *eb)
{
int i;

if (mutex_trylock(&eb->mutex))
return 0;
for (i = 0; i < 512; i++) {
cpu_relax();
if (mutex_trylock(&eb->mutex))
return 0;
}
cpu_relax();
mutex_lock_nested(&eb->mutex, BTRFS_MAX_LEVEL - btrfs_header_level(eb));
return 0;
}
Expand Down

0 comments on commit b831437

Please sign in to comment.