From: Liu Bo Date: Wed, 10 Sep 2014 04:58:50 +0000 (+0800) Subject: Btrfs: fix loop writing of async reclaim X-Git-Tag: fixes-against-v3.18-rc2~120^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25ce459c1af138f95a3fd318461193397ebb825b;p=pandora-kernel.git Btrfs: fix loop writing of async reclaim One of my tests shows that when we really don't have space to reclaim via flush_space and also run out of space, this async reclaim work loops on adding itself into the workqueue and keeps writing something to disk according to iostat's results, and these writes mainly comes from commit_transaction which writes super_block. This's unacceptable as it can be bad to disks, especially memeory storages. This adds a check to avoid the above situation. Signed-off-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed