> + error = xfs_ialloc_ag_alloc(*tpp, agbp); > + if (error < 0) { > xfs_trans_brelse(*tpp, agbp); > > if (error == -ENOSPC) > error = 0; > break; > + } else if (error == 0) { No need for the else after the break.
> + error = xfs_ialloc_ag_alloc(*tpp, agbp); > + if (error < 0) { > xfs_trans_brelse(*tpp, agbp); > > if (error == -ENOSPC) > error = 0; > break; > + } else if (error == 0) { No need for the else after the break.