diff options
author | Chunguang Xu <brookxu@tencent.com> | 2020-11-07 16:58:11 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-12-03 15:36:57 +0100 |
commit | 837c23fbc1b812f814c75388b6b364349c02efd8 (patch) | |
tree | b63fb2e809c55eab47cc5061ef2a40d18bf91a50 /fs/ext4/super.c | |
parent | ext4: print quota journalling mode on (re-)mount (diff) | |
download | linux-837c23fbc1b812f814c75388b6b364349c02efd8.tar.xz linux-837c23fbc1b812f814c75388b6b364349c02efd8.zip |
ext4: use ASSERT() to replace J_ASSERT()
There are currently multiple forms of assertion, such as J_ASSERT().
J_ASEERT() is provided for the jbd module, which is a public module.
Maybe we should use custom ASSERT() like other file systems, such as
xfs, which would be better.
Signed-off-by: Chunguang Xu <brookxu@tencent.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/1604764698-4269-1-git-send-email-brookxu@tencent.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to '')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 132adb2a2c01..f86220a8df50 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1240,7 +1240,7 @@ static void ext4_put_super(struct super_block *sb) * in-memory list had better be clean by this point. */ if (!list_empty(&sbi->s_orphan)) dump_orphan_list(sb, sbi); - J_ASSERT(list_empty(&sbi->s_orphan)); + ASSERT(list_empty(&sbi->s_orphan)); sync_blockdev(sb->s_bdev); invalidate_bdev(sb->s_bdev); |