Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128838
b: refs/heads/master
c: 6dddcbe
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 70b9184 commit 0be6622
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: f421950f86bf96a11fef932e167ab2e70d4c43a0
refs/heads/master: 6dddcbeb28b34620ad033f1e8d9f6960bafdd7d2
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ struct btrfs_ordered_sum;

#define BTRFS_MAGIC "_B5RfS_M"

#define BTRFS_MAX_LEVEL 8
#ifdef CONFIG_LOCKDEP
# define BTRFS_MAX_LEVEL 7
#else
# define BTRFS_MAX_LEVEL 8
#endif

/* holds pointers to all of the tree roots */
#define BTRFS_ROOT_TREE_OBJECTID 1ULL
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/btrfs/locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int btrfs_tree_lock(struct extent_buffer *eb)
return 0;
}
cpu_relax();
mutex_lock(&eb->mutex);
mutex_lock_nested(&eb->mutex, BTRFS_MAX_LEVEL - btrfs_header_level(eb));
return 0;
}

Expand Down

0 comments on commit 0be6622

Please sign in to comment.