[Devel] [PATCH vz10 v3 05/11] ext4: use ASSERT() instead of J_ASSERT() in ext4_sync_files
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Aug 22 22:14:11 MSK 2025
From: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Replace J_ASSERT with ASSERT macro to align with mainstream changes.
Similar to upstream commit:
837c23fbc1b8 ("ext4: use ASSERT() to replace J_ASSERT()")
Part of rework for ext4_sync_files function.
Fixes: 26337aacaafa9 ("ext4: add mfsync support")
https://virtuozzo.atlassian.net/browse/VSTOR-107255
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Feature: ext4: optimized sync of a set of files - mfsync()
---
fs/ext4/fsync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c
index 9905b2363908f..88353471cd733 100644
--- a/fs/ext4/fsync.c
+++ b/fs/ext4/fsync.c
@@ -193,7 +193,7 @@ int ext4_sync_files(struct file **files, unsigned int *flags, unsigned int nr_fi
if (unlikely(ret))
return ret;
- J_ASSERT(ext4_journal_current_handle() == NULL);
+ ASSERT(ext4_journal_current_handle() == NULL);
journal = EXT4_SB(sb)->s_journal;
if (!journal)
--
2.43.0
More information about the Devel
mailing list