From: Miao Xie Date: Tue, 14 Jan 2014 12:31:51 +0000 (+0800) Subject: Btrfs: don't mix the ordered extents of all files together during logging the inodes X-Git-Tag: v3.15-rc1~96^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=827463c49f29111efd22148d24c9ca44d648acfa;p=pandora-kernel.git Btrfs: don't mix the ordered extents of all files together during logging the inodes There was a problem in the old code: If we failed to log the csum, we would free all the ordered extents in the log list including those ordered extents that were logged successfully, it would make the log committer not to wait for the completion of the ordered extents. This patch doesn't insert the ordered extents that is about to be logged into a global list, instead, we insert them into a local list. If we log the ordered extents successfully, we splice them with the global list, or we will throw them away, then do full sync. It can also reduce the lock contention and the traverse time of list. Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed