Clear the nrext64 inode flag if the filesystem doesn't have the nrext64
feature enabled in the superblock.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
}
}
+ if (xfs_dinode_has_large_extent_counts(dino) &&
+ !xfs_has_large_extent_counts(mp)) {
+ if (!uncertain) {
+ do_warn(
+ _("inode %" PRIu64 " is marked large extent counts but file system does not support large extent counts\n"),
+ lino);
+ }
+ flags2 &= ~XFS_DIFLAG2_NREXT64;
+
+ if (!no_modify)
+ *dirty = 1;
+ }
+
if (!verify_mode && flags2 != be64_to_cpu(dino->di_flags2)) {
if (!no_modify) {
do_warn(_("fixing bad flags2.\n"));