ext4: get rid of ext4_sb_has_crypto()
PATCH 1/1 ext4: get rid of ext4_sb_has_crypto()
ext4_sb_has_crypto() just called through to ext4_has_feature_encrypt(), and all callers except one were already using the latter. So remove it and switch its one caller to ext4_has_feature_encrypt().
Signed-off-by Eric Biggers <[email protected]>
--- fs/ext4/ext4.h | 5 ----- fs/ext4/ioctl.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-)
fs/ext4/ext4.h +0 -4
@@ -2277,11 +2277,6 @@ extern unsigned ext4_free_clusters_after_init(struct super_block *sb, struct ext4_group_desc *gdp);ext4_fsblk_t ext4_inode_to_goal_block (struct inode *); -static inline int ext4_sb_has_crypto (struct super_block *sb) -{ -return ext4_has_feature_encrypt (sb); -}
Quoted 5 lines · Eric Biggers
ext4_sb_has_crypto()just called through toext4_has_feature_encrypt(), and all callers except one were already using the latter. So remove it and switch its one caller toext4_has_feature_encrypt().Signed-off-by Eric Biggers <[email protected]>
Thanks, applied.
- Ted