]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Some fixes for batching extent insert.
authorLiu Hui <onlyflyer@gmail.com>
Tue, 18 Nov 2008 16:30:10 +0000 (11:30 -0500)
committerChris Mason <chris.mason@oracle.com>
Tue, 18 Nov 2008 16:30:10 +0000 (11:30 -0500)
commitefe29cc5d6ba8753a8d2b3297eadede3ccf4e84e
treebad79258bb437341611116d951f7a8711c4473a0
parent1d1d80f45c72669a6dfc681a0311f865cab6acb2
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 <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/extent-tree.c