From: Josef Bacik Date: Wed, 14 Aug 2013 18:02:47 +0000 (-0400) Subject: Btrfs: avoid starting a transaction in the write path X-Git-Tag: v3.12-rc1~40^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00361589d2eebd90fca022148c763e40d3e90871;p=pandora-kernel.git Btrfs: avoid starting a transaction in the write path I noticed while looking at a deadlock that we are always starting a transaction in cow_file_range(). This isn't really needed since we only need a transaction if we are doing an inline extent, or if the allocator needs to allocate a chunk. So push down all the transaction start stuff to be closer to where we actually need a transaction in all of these cases. This will hopefully reduce our write latency when we are committing often. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed