Josef Bacik 382279336f Btrfs: set trans to null in reserve_metadata_bytes if we commit the transaction
btrfs_commit_transaction will free our trans, but because we pass trans to
shrink_delalloc we could possibly have a use after free situation.  So instead
if we commit the transaction, set trans to null and set committed to true so we
don't keep trying to commit a transaction.  This fixes a panic I could reproduce
at will.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
2010-10-26 12:52:53 -04:00
..
2010-03-15 10:58:13 -04:00
2008-09-25 11:04:06 -04:00
2010-10-22 15:54:58 -04:00
2010-03-16 14:24:27 -04:00
2010-05-21 18:31:18 -04:00