
is less than or equal to NDADDR + NINDIR, the number of blocks mapped without getting to the double indirect block. The code here was instead using NINDIR * ifpb (ifile entries per block); this gives the number of ifile entries the indirect block can map, but that isn't a useful number. Caught by mlelstv.