]> git.neil.brown.name Git - LaFS.git/commit
Add proper locking and refcounting to pin_all_children.
authorNeilBrown <neilb@suse.de>
Sat, 26 Jun 2010 04:06:20 +0000 (14:06 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 27 Jun 2010 23:15:02 +0000 (09:15 +1000)
commitbde33db15af53a7eed2ec28751c67125ba32ced5
tree19043bd8eb33c27d3e0364aac37415ec905cae90
parent81618ee992e9ca11f91428afb4b0c029e2e9b3f2
Add proper locking and refcounting to pin_all_children.

We need private_lock to walk the list,
and we don't want to refile a block that might not have
a reference count.

And only pin Dirty children.  Others don't need it.

Signed-off-by: NeilBrown <neilb@suse.de>
index.c