Re: [PATCH 2/4] repair: don't double check dir2 sf parent in phase 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 15, 2020 at 10:08:34AM -0400, Brian Foster wrote:
> The shortform parent ino verification code runs once in phase 3
> (ino_discovery == true) and once in phase 4 (ino_discovery ==
> false). This is unnecessary and leads to duplicate error messages if
> repair replaces an invalid parent value with zero because zero is
> still an invalid value. Skip the check in phase 4.

This looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

As far as the existing code is concerned:  Does anyone else find the
ino_discovery booleand passed as int as annoying as I do?  An
"enum repair_phase phase" would be much more descriptive in my opinion.



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux