From: Darrick J. Wong <djwong@xxxxxxxxxx> Preserve the state of the NREXT64 inode flag when we're changing the other flags2 fields. This is only vital for the kernel version of this function, but we should keep these in sync. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- libxfs/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libxfs/util.c b/libxfs/util.c index ef01fcf8..d2389198 100644 --- a/libxfs/util.c +++ b/libxfs/util.c @@ -198,7 +198,8 @@ xfs_flags2diflags2( { uint64_t di_flags2 = (ip->i_diflags2 & (XFS_DIFLAG2_REFLINK | - XFS_DIFLAG2_BIGTIME)); + XFS_DIFLAG2_BIGTIME | + XFS_DIFLAG2_NREXT64)); if (xflags & FS_XFLAG_DAX) di_flags2 |= XFS_DIFLAG2_DAX;