]> git.neil.brown.name Git - LaFS.git/commit
Pin SegmentMap block when they might need to be dirtied.
authorNeilBrown <neilb@suse.de>
Sat, 26 Jun 2010 03:26:37 +0000 (13:26 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 27 Jun 2010 23:15:02 +0000 (09:15 +1000)
commit81618ee992e9ca11f91428afb4b0c029e2e9b3f2
tree982bdf82b811b19d552889972fb6de4f13e9bf32
parent22327915c1feb3279649b44bb4cde1a0db3b4fda
Pin SegmentMap block when they might need to be dirtied.

This is more in-keeping with other practices and not that SegmentMap
blocks are handles carefully by the cleaner and checkpoint, it is
safe to do this.
They stay pinned until they are no-longer referenced.  This may keep
some Credits unavailable but that is not a big cost.

When we pin these we don't hold or need a phase lock, so don't
require it.

Now that we alway pin segments when first used (free_get) we don't
need to prealloc in lafs_seg_move.

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