]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix misuse of trans block rsv
authorLiu Bo <liubo2009@cn.fujitsu.com>
Sun, 11 Sep 2011 14:52:24 +0000 (10:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 11 Sep 2011 14:52:24 +0000 (10:52 -0400)
commitf02acd4a30f519418407798c84170667bc569bd6
tree4013ae687f6a2a6f2f96d9da739bd3bcf468ac79
parent12f2e54154ad25348d70c95ae5918b626db700e4
Btrfs: fix misuse of trans block rsv

At the beginning of create_pending_snapshot, trans->block_rsv is set
to pending->block_rsv and is used for snapshot things, however, when
it is done, we do not recover it as will.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/transaction.c