]> 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)
commitd0c66dbfc93386c93194b61b09c8b68ed27b9839
tree4013ae687f6a2a6f2f96d9da739bd3bcf468ac79
parent03cf98dced2c43be0fbb4d20e1e3822771798741
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