case S_IFDIR:
rval = process_inode_data(dip, TYP_DIR2);
if (dip->di_format == XFS_DINODE_FMT_LOCAL)
- need_new_crc = 1;
+ need_new_crc = true;
break;
case S_IFLNK:
rval = process_inode_data(dip, TYP_SYMLINK);
if (dip->di_format == XFS_DINODE_FMT_LOCAL)
- need_new_crc = 1;
+ need_new_crc = true;
break;
case S_IFREG:
rval = process_inode_data(dip, TYP_DATA);
case S_IFBLK:
case S_IFSOCK:
process_dev_inode(dip);
- need_new_crc = 1;
+ need_new_crc = true;
break;
default:
break;
attr_data.remote_val_count = 0;
switch (dip->di_aformat) {
case XFS_DINODE_FMT_LOCAL:
- need_new_crc = 1;
+ need_new_crc = true;
if (obfuscate || zero_stale_data)
process_sf_attr(dip);
break;
done:
/* Heavy handed but low cost; just do it as a catch-all. */
if (zero_stale_data)
- need_new_crc = 1;
+ need_new_crc = true;
if (crc_was_ok && need_new_crc)
libxfs_dinode_calc_crc(mp, dip);