Re: [PATCH] Btrfs: fix the missing error information in create_pending_snapshot()

2012-09-18 Thread David Sterba
On Tue, Sep 18, 2012 at 01:52:38PM +0800, Miao Xie wrote: 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. Thanks, that's it! AFAICS it's based on

[PATCH] Btrfs: fix the missing error information in create_pending_snapshot()

2012-09-17 Thread Miao Xie
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 d...@jikos.cz Signed-off-by: Miao Xie mi...@cn.fujitsu.com ---