Re: [PATCH 2/5] xfs: use generic percpu counters for inode counter

Christoph Hellwig
2015-02-03T21:38:34Z

On Tue, Feb 03, 2015 at 06:33:44AM +1100, Dave Chinner wrote:
> > Why would the percpu counter not be initialized here? Oh, I guess
> > this is for xfs_sb_verify(). But why can't xfs_mount_validate_sb simply
> > operate on the disk endian SB to avoid that whole issue?
>
> Possibly. I'll look into it.

A simpler alternative would be to move them out of __xfs_sb_from_disk
into the one caller that needs these values.