summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2010-12-08 15:15:11 +0100
committerJosef Bacik <josef@redhat.com>2010-12-09 19:57:13 +0100
commitb8399dee478db7939cd0d6fda8ecacddf2facd03 (patch)
tree418a67d8d2de13739f3b14518917c8aaadafe3b8 /fs/btrfs/ioctl.c
parentBtrfs: deal with space cache errors better (diff)
downloadlinux-b8399dee478db7939cd0d6fda8ecacddf2facd03.tar.xz
linux-b8399dee478db7939cd0d6fda8ecacddf2facd03.zip
Btrfs: do not do fast caching if we are allocating blocks for tree_root
Since the fast caching uses normal tree locking, we can possibly deadlock if we get to the caching via a btrfs_search_slot() on the tree_root. So just check to see if the root we are on is the tree root, and just don't do the fast caching. Reported-by: Sage Weil <sage@newdream.net> Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
0 files changed, 0 insertions, 0 deletions