]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: put back delayed refs that are too new
authorArne Jansen <sensille@gmx.net>
Tue, 13 Sep 2011 13:16:43 +0000 (15:16 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 4 Jan 2012 15:12:45 +0000 (16:12 +0100)
commit06f1bf8b983e1ebc6f77b00e1b93e0a54982bae0
tree3dfa3109f7df9983ce88dad5bcb4515f7d4b26b5
parentbf3575390f58c38a6f9b534b3ceb05fd0f45f125
Btrfs: put back delayed refs that are too new

When processing a delayed ref, first check if there are still old refs in
the process of being added. If so, put this ref back to the tree. To avoid
looping on this ref, choose a newer one in the next loop.
btrfs_find_ref_cluster has to take care of that.

Signed-off-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/delayed-ref.c
fs/btrfs/extent-tree.c