]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix the missing error information in create_pending_snapshot()
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 18 Sep 2012 05:52:38 +0000 (23:52 -0600)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 00:07:33 +0000 (20:07 -0400)
commitb150524858fad2e12f84ea26e6f16a36ccd9fc88
tree52fec2808b8f6e7fdf7e99a907bf5e233e26cfd3
parent356117644815c01cbf3beae7a7b4630c4f27e8ee
Btrfs: fix the missing error information in create_pending_snapshot()

The macro btrfs_abort_transaction() can get the line number of the code
where the problem happens, so we should invoke it in the place that the
error occurs, or we will lose the line number.

Reported-by: David Sterba <dave@jikos.cz>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/transaction.c