]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix warning when creating snapshots
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 13 Mar 2013 13:43:03 +0000 (07:43 -0600)
committerChris Mason <chris.mason@fusionio.com>
Thu, 14 Mar 2013 18:57:30 +0000 (14:57 -0400)
commita987c6979899315d1b797af6f8fa4a06d6ef5fec
tree562a221897694067b4846233e2a7cf0dbc23aea1
parent8f6a24cf61d11aea47b0484937f674e7a8e4dee4
Btrfs: fix warning when creating snapshots

Creating snapshot passes extent_root to commit its transaction,
but it can lead to the warning of checking root for quota in
the __btrfs_end_transaction() when someone else is committing
the current transaction.  Since we've recorded the needed root
in trans_handle, just use it to get rid of the warning.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/transaction.c