All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: set awu_max_opt to awu_max
@ 2026-09-10 10:08 Pankaj Raghav
  2026-09-10 10:10 ` sashiko-bot
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pankaj Raghav @ 2026-09-10 10:08 UTC (permalink / raw)
  To: linux-ext4, Theodore Ts'o
  Cc: Ojaswin Mujoo, Ritesh Harjani, Baokun Li, Zhang Yi,
	Andreas Dilger, Jan Kara, Pankaj Raghav

commit 5d894321c49e ("fs: add atomic write unit max opt to statx")
added atomic write max optimal to statx. As XFS can support large atomic
writes through SW, max_opt exposes the value that will be HW accelerated
atomics.

As ext4 does not support SW atomics, set awu_max_opt to awu_max.

Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
---
 fs/ext4/inode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 26f0f9714f03..93056c971e74 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -6304,7 +6304,8 @@ int ext4_getattr(struct mnt_idmap *idmap, const struct path *path,
 			awu_max = sbi->s_awu_max;
 		}
 
-		generic_fill_statx_atomic_writes(stat, awu_min, awu_max, 0);
+		generic_fill_statx_atomic_writes(stat, awu_min, awu_max,
+						 awu_max);
 	}
 
 	flags = ei->i_flags & EXT4_FL_USER_VISIBLE;

base-commit: d5ba62a0b130441bcabca59c2fd2d59e65360234
-- 
2.51.2


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

end of thread, other threads:[~2026-09-11 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 10:08 [PATCH] ext4: set awu_max_opt to awu_max Pankaj Raghav
2026-09-10 10:10 ` sashiko-bot
2026-09-10 11:17 ` Jan Kara
2026-09-10 15:15 ` Ritesh Harjani
2026-09-11 14:15 ` Ojaswin Mujoo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.