@@ -605,7 +605,7 @@ static int htree_dirblock_to_tree(struct file *dir_file,
605605 dir -> i_sb -> s_blocksize -
606606 EXT4_DIR_REC_LEN (0 ));
607607 for (; de < top ; de = ext4_next_entry (de , dir -> i_sb -> s_blocksize )) {
608- if (!ext4_check_dir_entry ("htree_dirblock_to_tree" , dir , de , bh ,
608+ if (!ext4_check_dir_entry (dir , de , bh ,
609609 (block <<EXT4_BLOCK_SIZE_BITS (dir -> i_sb ))
610610 + ((char * )de - bh -> b_data ))) {
611611 /* On error, skip the f_pos to the next block. */
@@ -844,8 +844,7 @@ static inline int search_dirblock(struct buffer_head *bh,
844844 if ((char * ) de + namelen <= dlimit &&
845845 ext4_match (namelen , name , de )) {
846846 /* found a match - just to be sure, do a full check */
847- if (!ext4_check_dir_entry ("ext4_find_entry" ,
848- dir , de , bh , offset ))
847+ if (!ext4_check_dir_entry (dir , de , bh , offset ))
849848 return -1 ;
850849 * res_dir = de ;
851850 return 1 ;
@@ -1019,7 +1018,7 @@ static struct buffer_head * ext4_dx_find_entry(struct inode *dir, const struct q
10191018 int off = (block << EXT4_BLOCK_SIZE_BITS (sb ))
10201019 + ((char * ) de - bh -> b_data );
10211020
1022- if (!ext4_check_dir_entry (__func__ , dir , de , bh , off )) {
1021+ if (!ext4_check_dir_entry (dir , de , bh , off )) {
10231022 brelse (bh );
10241023 * err = ERR_BAD_DX_DIR ;
10251024 goto errout ;
@@ -1303,8 +1302,7 @@ static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry,
13031302 de = (struct ext4_dir_entry_2 * )bh -> b_data ;
13041303 top = bh -> b_data + blocksize - reclen ;
13051304 while ((char * ) de <= top ) {
1306- if (!ext4_check_dir_entry ("ext4_add_entry" , dir , de ,
1307- bh , offset ))
1305+ if (!ext4_check_dir_entry (dir , de , bh , offset ))
13081306 return - EIO ;
13091307 if (ext4_match (namelen , name , de ))
13101308 return - EEXIST ;
@@ -1671,7 +1669,7 @@ static int ext4_delete_entry(handle_t *handle,
16711669 pde = NULL ;
16721670 de = (struct ext4_dir_entry_2 * ) bh -> b_data ;
16731671 while (i < bh -> b_size ) {
1674- if (!ext4_check_dir_entry ("ext4_delete_entry" , dir , de , bh , i ))
1672+ if (!ext4_check_dir_entry (dir , de , bh , i ))
16751673 return - EIO ;
16761674 if (de == de_del ) {
16771675 BUFFER_TRACE (bh , "get_write_access" );
@@ -1954,7 +1952,7 @@ static int empty_dir(struct inode *inode)
19541952 }
19551953 de = (struct ext4_dir_entry_2 * ) bh -> b_data ;
19561954 }
1957- if (!ext4_check_dir_entry ("empty_dir" , inode , de , bh , offset )) {
1955+ if (!ext4_check_dir_entry (inode , de , bh , offset )) {
19581956 de = (struct ext4_dir_entry_2 * )(bh -> b_data +
19591957 sb -> s_blocksize );
19601958 offset = (offset | (sb -> s_blocksize - 1 )) + 1 ;
0 commit comments