summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2015-08-05 16:43:27 +0800
committerChris Mason <clm@fb.com>2015-08-09 07:07:12 -0700
commit868f401ae38acb439005626c04d575e64c5ae760 (patch)
tree66a215bac40c8832a6df463aba4aaac4506a3be2 /fs/btrfs/print-tree.c
parentd7cad2389560f3249435ac928bc13e9408ae467e (diff)
downloadlinux-868f401ae38acb439005626c04d575e64c5ae760.tar.bz2
btrfs: Use ref_cnt for set_block_group_ro()
More than one code call set_block_group_ro() and restore rw in fail. Old code use bool bit to save blockgroup's ro state, it can not support parallel case(it is confirmd exist in my debug log). This patch use ref count to store ro state, and rename set_block_group_ro/set_block_group_rw to inc_block_group_ro/dec_block_group_ro. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
0 files changed, 0 insertions, 0 deletions