diff options
author | Chunguang Xu <brookxu@tencent.com> | 2020-11-07 18:58:11 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-12-03 17:36:57 +0300 |
commit | 837c23fbc1b812f814c75388b6b364349c02efd8 (patch) | |
tree | b63fb2e809c55eab47cc5061ef2a40d18bf91a50 /fs/ext4/balloc.c | |
parent | ca9b404ff137d67e559c5bd77533408bb0fa41dc (diff) | |
download | linux-837c23fbc1b812f814c75388b6b364349c02efd8.tar.xz |
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 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 1d640b145637..f45f9feebe59 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c @@ -185,7 +185,7 @@ static int ext4_init_block_bitmap(struct super_block *sb, struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_fsblk_t start, tmp; - J_ASSERT_BH(bh, buffer_locked(bh)); + ASSERT(buffer_locked(bh)); /* If checksum is bad mark all blocks used to prevent allocation * essentially implementing a per-group read-only flag. */ |