]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 1 Oct 2012 19:19:30 +0000 (15:19 -0400)
commita6b32882fc349e50a7441d42e6a10fcc45823dba
treee396daa16cb46d4370ba6f07f1c820c55b3db89d
parent6cfd396d53ff7e8160096dac361775ec1d77a555
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