summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2010-09-16 16:17:03 -0400
committerChris Mason <chris.mason@oracle.com>2010-10-29 09:26:35 -0400
commitdde5abee12327d59f968bbfc8151e1b04082a2c4 (patch)
treeeba52b161a83f77c902ecb365ad661d317499717 /fs/btrfs/ctree.h
parent9d66e233c7042da27ec699453770f41e567a0442 (diff)
downloadop-kernel-dev-dde5abee12327d59f968bbfc8151e1b04082a2c4.zip
op-kernel-dev-dde5abee12327d59f968bbfc8151e1b04082a2c4.tar.gz
Btrfs: check cache->caching_ctl before returning if caching has started
With the free space disk caching we can mark the block group as started with the caching, but we don't have a caching ctl. This can race with anybody else who tries to get the caching ctl before we cache (this is very hard to do btw). So instead check to see if cache->caching_ctl is set, and if not return NULL. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud