On Wed, May 20, 2020 at 05:33:58PM +1000, Dave Chinner wrote: > + /* > + * Debug checks outside of the spinlock so they don't lock up the > + * machine if they fail. > + */ > + ASSERT(mp->m_sb.sb_frextents >= 0); > + ASSERT(mp->m_sb.sb_dblocks >= 0); > + ASSERT(mp->m_sb.sb_agcount >= 0); > + ASSERT(mp->m_sb.sb_imax_pct >= 0); > + ASSERT(mp->m_sb.sb_rextsize >= 0); > + ASSERT(mp->m_sb.sb_rbmblocks >= 0); > + ASSERT(mp->m_sb.sb_rblocks >= 0); > + ASSERT(mp->m_sb.sb_rextents >= 0); > + ASSERT(mp->m_sb.sb_rextslog >= 0); > return; No need for the return here at the end of the function. Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>