diff options
author | Eric Biggers <ebiggers@google.com> | 2025-02-07 06:13:35 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2025-03-17 18:19:41 +0300 |
commit | e224fa3b8a0351834fe310ccac61a5aab941ee22 (patch) | |
tree | dd8096d21e16876aa7b6106a4d8b81ff57bb6c4d /fs/ext4/inline.c | |
parent | a662f3c03b754e1f97a2781fa242e95bdb139798 (diff) | |
download | linux-e224fa3b8a0351834fe310ccac61a5aab941ee22.tar.xz |
ext4: remove redundant function ext4_has_metadata_csum
Since commit f2b4fa19647e ("ext4: switch to using the crc32c library"),
ext4_has_metadata_csum() is just an alias for
ext4_has_feature_metadata_csum(). ext4_has_feature_metadata_csum() is
generated by EXT4_FEATURE_RO_COMPAT_FUNCS and uses the regular naming
convention for checking a single ext4 feature. Therefore, remove
ext4_has_metadata_csum() and update all its callers to use
ext4_has_feature_metadata_csum() directly.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://patch.msgid.link/20250207031335.42637-1-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inline.c')
-rw-r--r-- | fs/ext4/inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index a9d333619241..f608f6554b95 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -1081,7 +1081,7 @@ static int ext4_finish_convert_inline_dir(handle_t *handle, memcpy((void *)de, buf + EXT4_INLINE_DOTDOT_SIZE, inline_size - EXT4_INLINE_DOTDOT_SIZE); - if (ext4_has_metadata_csum(inode->i_sb)) + if (ext4_has_feature_metadata_csum(inode->i_sb)) csum_size = sizeof(struct ext4_dir_entry_tail); inode->i_size = inode->i_sb->s_blocksize; |