ext4:Remove unneeded function definition and prototype for ext4_ext_calc_metadata_amount
PATCH 1/1 ext4:Remove unneeded function definition and prototype for ext4_ext_calc_metadata_amount
This removes the unneeded function definition and prototype for ext4_ext_calc_metadata_amount in the files ext4.c and extents.c as there are no more callers of this particular function and thus it can now be removed without issues in order to remove unnessary code from ext4 codebase.
Signed-off-by Bastien Philbert <[email protected]>
--- fs/ext4/ext4.h | 2 -- fs/ext4/extents.c | 47 ----------------------------------------------- 2 files changed, 49 deletions(-)
fs/ext4/ext4.h +0 -2
@@ -3180,8 +3180,6 @@ extern int ext4_convert_unwritten_extents(handle_t *handle, struct inode *inode, loff_t offset, ssize_t len);extern int ext4_map_blocks (handle_t *handle,struct inode *inode,struct ext4_map_blocks *map,int flags); -extern int ext4_ext_calc_metadata_amount (struct inode *inode, -ext4_lblk_t lblocks);extern int ext4_ext_calc_credits_for_single_extent (struct inode *inode,int num,struct ext4_ext_path *path);
fs/ext4/extents.c +0 -47
53 lines not on this page · raw message
Signature · 1 line
2.5.0