Skip to content

Commit e89ab76

Browse files
author
Darrick J. Wong
committed
xfs: preserve DIFLAG2_NREXT64 when setting other inode attributes
It is vitally important that we preserve the state of the NREXT64 inode flag when we're changing the other flags2 fields. Fixes: 9b7d16e ("xfs: Introduce XFS_DIFLAG2_NREXT64 and associated helpers") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Chandan Babu R <chandan.babu@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
1 parent 10930b2 commit e89ab76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/xfs/xfs_ioctl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,8 @@ xfs_flags2diflags2(
10961096
{
10971097
uint64_t di_flags2 =
10981098
(ip->i_diflags2 & (XFS_DIFLAG2_REFLINK |
1099-
XFS_DIFLAG2_BIGTIME));
1099+
XFS_DIFLAG2_BIGTIME |
1100+
XFS_DIFLAG2_NREXT64));
11001101

11011102
if (xflags & FS_XFLAG_DAX)
11021103
di_flags2 |= XFS_DIFLAG2_DAX;

0 commit comments

Comments
 (0)