From: Miao Xie Date: Thu, 6 Mar 2014 05:54:55 +0000 (+0800) Subject: Btrfs: fix early enospc due to the race of the two ordered extent wait X-Git-Tag: v3.15-rc1~96^2~21 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b9d83cd6bebe10e9965d2cef8053b02663eaad8;p=pandora-kernel.git Btrfs: fix early enospc due to the race of the two ordered extent wait btrfs_wait_ordered_roots() moves all the list entries to a new list, and then deals with them one by one. But if the other task invokes this function at that time, it would get a empty list. It makes the enospc error happens more early. Fix it. Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed