Re: [PATCH 37/37] repair: fix leaf node directory data check

Christoph Hellwig
2013-11-06T10:39:11Z

On Wed, Nov 06, 2013 at 12:07:23PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> When walking the leaf node format blocks (LEAFN) in the hash index
> of a large directory, we could trip over btree node blocks (DA_NODE)
> in the address space if there are enough entries in the directory.
> These cause a verifier failure, and hence the directory is
> considered corrupt and is trashed and rebuilt unnecesarily. Fix this
> by using the correct verifier that can handle both types of blocks
> without triggering failures.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>