From: Liu Hui Date: Tue, 18 Nov 2008 16:30:10 +0000 (-0500) Subject: Btrfs: Some fixes for batching extent insert. X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4eec2ca1167bae46295aeb66abd15fd52387845;p=pandora-kernel.git Btrfs: Some fixes for batching extent insert. In insert_extents(), when ret==1 and last is not zero, it should check if the current inserted item is the last item in this batching inserts. If so, it should just break from loop. If not, 'cur = insert_list->next' will make no sense because the list is empty now, and 'op' will point to an unexpectable place. There are also some trivial fixs in this patch including one comment typo error and deleting two redundant lines. Signed-off-by: Chris Mason --- Reading git-diff-tree failed