]> git.neil.brown.name Git - LaFS.git/commit
Revise rule for inode data blocks as leafs.
authorNeilBrown <neilb@suse.de>
Mon, 21 Jun 2010 03:40:16 +0000 (13:40 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 21 Jun 2010 03:40:16 +0000 (13:40 +1000)
commite396a0fd6f5e306cde87fd1790ddb703bcbf558f
treedcee954f448b4189920bb7b2991c51590fae8278
parent6de9b0989d211e6983184ba085ee0f6c9d585fa5
Revise rule for inode data blocks as leafs.

We cannot process an inode data block as a leaf before processing
the InoIdx block.

Previously we would unpin an inode data block if the InoIdx block
should take priority.  But that is problematic.
Instead we simply take the inode data block off the leaf list.

This means we have to put it back on when the InoIdx gets unpinned
or phase-flipped.

At same time, tidy up determination of 'is a leaf' as this is used
both when adding something to a leaf list, and when taking something
off.

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