public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: preserve DIFLAG2_NREXT64 when setting other inode attributes
@ 2022-06-05 16:35 Darrick J. Wong
  2022-06-05 22:29 ` Dave Chinner
  2022-06-06 12:49 ` Chandan Babu R
  0 siblings, 2 replies; 8+ messages in thread
From: Darrick J. Wong @ 2022-06-05 16:35 UTC (permalink / raw)
  To: Chandan Babu R; +Cc: xfs

From: Darrick J. Wong <djwong@kernel.org>

It is vitally important that we preserve the state of the NREXT64 inode
flag when we're changing the other flags2 fields.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 fs/xfs/xfs_ioctl.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index 5a364a7d58fd..0d67ff8a8961 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -1096,7 +1096,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;

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-07  6:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-05 16:35 [PATCH] xfs: preserve DIFLAG2_NREXT64 when setting other inode attributes Darrick J. Wong
2022-06-05 22:29 ` Dave Chinner
2022-06-06  0:02   ` Darrick J. Wong
2022-06-06  1:20     ` Dave Chinner
2022-06-06  7:22     ` Amir Goldstein
2022-06-06 17:12       ` Darrick J. Wong
2022-06-07  6:48         ` Amir Goldstein
2022-06-06 12:49 ` Chandan Babu R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox