All other blocks in descriptor must also be beyond EOF,
so ignore them all at once.
Signed-off-by: NeilBrown <neilb@suse.de>
*/
if (LAFSI(ino)->type == 0 ||
(LAFSI(ino)->type >= TypeBase &&
- ((loff_t)bnum << ino->i_blkbits) >= i_size_read(ino)))
+ ((loff_t)bnum << ino->i_blkbits) >= i_size_read(ino))) {
+ /* skip the whole descriptor */
+ bcnt = 1;
goto skip;
+ }
itrunc = ((ino->i_generation<<8) |
(LAFSI(ino)->trunc_gen & 0xff)) & 0x7fff;
if (itrunc != trunc) {