From: Josef Bacik Date: Tue, 26 Oct 2010 16:52:53 +0000 (-0400) Subject: Btrfs: set trans to null in reserve_metadata_bytes if we commit the transaction X-Git-Tag: v2.6.37-rc1~19^2~22^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=382279336f428c80f344edfc30d53797e3e76146;p=pandora-kernel.git 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 --- Reading git-diff-tree failed