]> www.infradead.org Git - users/hch/xfsprogs.git/commit
repair: helper to transition inode blocks to inode state sparse-inodes
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Jun 2015 05:08:48 +0000 (15:08 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:08:48 +0000 (15:08 +1000)
commit25753aa9148ccec05f46f836211b8d66ab63949f
tree8b6a5be0e8115690b51ba693b3abcb8744186de3
parentbb9a8c3ccd01458ce7fdb950eeaf6635daaf4bf6
repair: helper to transition inode blocks to inode state

The state of each block in an inode chunk transitions from free state to
inode state as we process physical inodes on disk. We take care to
detect invalid transitions and warn the user if multiply claimed blocks
are detected.

This block of code is a largish switch statement that is executed twice
due to the implementation details of the inode processing loop. Factor
it into a new helper.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/dino_chunks.c