]> git.karo-electronics.de Git - mv-sheeva.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)
commitd1270cd91f308c9d22b2804720c36ccd32dbc35e
tree3dfa3109f7df9983ce88dad5bcb4515f7d4b26b5
parent00f04b88791ff49dc64ada18819d40a5b0671709
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