@@ -194,7 +194,7 @@ void ext4_delete_inode(struct inode *inode)
194194 inode -> i_size = 0 ;
195195 err = ext4_mark_inode_dirty (handle , inode );
196196 if (err ) {
197- ext4_warning (inode -> i_sb , __func__ ,
197+ ext4_warning (inode -> i_sb ,
198198 "couldn't mark inode dirty (err %d)" , err );
199199 goto stop_handle ;
200200 }
@@ -212,7 +212,7 @@ void ext4_delete_inode(struct inode *inode)
212212 if (err > 0 )
213213 err = ext4_journal_restart (handle , 3 );
214214 if (err != 0 ) {
215- ext4_warning (inode -> i_sb , __func__ ,
215+ ext4_warning (inode -> i_sb ,
216216 "couldn't extend journal (err %d)" , err );
217217 stop_handle :
218218 ext4_journal_stop (handle );
@@ -323,8 +323,7 @@ static int ext4_block_to_path(struct inode *inode,
323323 offsets [n ++ ] = i_block & (ptrs - 1 );
324324 final = ptrs ;
325325 } else {
326- ext4_warning (inode -> i_sb , "ext4_block_to_path" ,
327- "block %lu > max in inode %lu" ,
326+ ext4_warning (inode -> i_sb , "block %lu > max in inode %lu" ,
328327 i_block + direct_blocks +
329328 indirect_blocks + double_blocks , inode -> i_ino );
330329 }
@@ -344,7 +343,7 @@ static int __ext4_check_blockref(const char *function, struct inode *inode,
344343 if (blk &&
345344 unlikely (!ext4_data_block_valid (EXT4_SB (inode -> i_sb ),
346345 blk , 1 ))) {
347- ext4_error (inode -> i_sb , function ,
346+ __ext4_error (inode -> i_sb , function ,
348347 "invalid block reference %u "
349348 "in inode #%lu" , blk , inode -> i_ino );
350349 return - EIO ;
@@ -1125,7 +1124,7 @@ static int check_block_validity(struct inode *inode, const char *msg,
11251124 sector_t logical , sector_t phys , int len )
11261125{
11271126 if (!ext4_data_block_valid (EXT4_SB (inode -> i_sb ), phys , len )) {
1128- ext4_error (inode -> i_sb , msg ,
1127+ __ext4_error (inode -> i_sb , msg ,
11291128 "inode #%lu logical block %llu mapped to %llu "
11301129 "(size %d)" , inode -> i_ino ,
11311130 (unsigned long long ) logical ,
@@ -4147,7 +4146,7 @@ static int ext4_clear_blocks(handle_t *handle, struct inode *inode,
41474146
41484147 if (!ext4_data_block_valid (EXT4_SB (inode -> i_sb ), block_to_free ,
41494148 count )) {
4150- ext4_error (inode -> i_sb , __func__ , "inode #%lu: "
4149+ ext4_error (inode -> i_sb , "inode #%lu: "
41514150 "attempt to clear blocks %llu len %lu, invalid" ,
41524151 inode -> i_ino , (unsigned long long ) block_to_free ,
41534152 count );
@@ -4255,7 +4254,7 @@ static void ext4_free_data(handle_t *handle, struct inode *inode,
42554254 if ((EXT4_JOURNAL (inode ) == NULL ) || bh2jh (this_bh ))
42564255 ext4_handle_dirty_metadata (handle , inode , this_bh );
42574256 else
4258- ext4_error (inode -> i_sb , __func__ ,
4257+ ext4_error (inode -> i_sb ,
42594258 "circular indirect block detected, "
42604259 "inode=%lu, block=%llu" ,
42614260 inode -> i_ino ,
@@ -4297,7 +4296,7 @@ static void ext4_free_branches(handle_t *handle, struct inode *inode,
42974296
42984297 if (!ext4_data_block_valid (EXT4_SB (inode -> i_sb ),
42994298 nr , 1 )) {
4300- ext4_error (inode -> i_sb , __func__ ,
4299+ ext4_error (inode -> i_sb ,
43014300 "indirect mapped block in inode "
43024301 "#%lu invalid (level %d, blk #%lu)" ,
43034302 inode -> i_ino , depth ,
@@ -4313,7 +4312,7 @@ static void ext4_free_branches(handle_t *handle, struct inode *inode,
43134312 * (should be rare).
43144313 */
43154314 if (!bh ) {
4316- ext4_error (inode -> i_sb , "ext4_free_branches" ,
4315+ ext4_error (inode -> i_sb ,
43174316 "Read failure, inode=%lu, block=%llu" ,
43184317 inode -> i_ino , nr );
43194318 continue ;
@@ -4628,9 +4627,8 @@ static int __ext4_get_inode_loc(struct inode *inode,
46284627
46294628 bh = sb_getblk (sb , block );
46304629 if (!bh ) {
4631- ext4_error (sb , "ext4_get_inode_loc" , "unable to read "
4632- "inode block - inode=%lu, block=%llu" ,
4633- inode -> i_ino , block );
4630+ ext4_error (sb , "unable to read inode block - "
4631+ "inode=%lu, block=%llu" , inode -> i_ino , block );
46344632 return - EIO ;
46354633 }
46364634 if (!buffer_uptodate (bh )) {
@@ -4728,9 +4726,8 @@ static int __ext4_get_inode_loc(struct inode *inode,
47284726 submit_bh (READ_META , bh );
47294727 wait_on_buffer (bh );
47304728 if (!buffer_uptodate (bh )) {
4731- ext4_error (sb , __func__ ,
4732- "unable to read inode block - inode=%lu, "
4733- "block=%llu" , inode -> i_ino , block );
4729+ ext4_error (sb , "unable to read inode block - inode=%lu,"
4730+ " block=%llu" , inode -> i_ino , block );
47344731 brelse (bh );
47354732 return - EIO ;
47364733 }
@@ -4941,8 +4938,7 @@ struct inode *ext4_iget(struct super_block *sb, unsigned long ino)
49414938 ret = 0 ;
49424939 if (ei -> i_file_acl &&
49434940 !ext4_data_block_valid (EXT4_SB (sb ), ei -> i_file_acl , 1 )) {
4944- ext4_error (sb , __func__ ,
4945- "bad extended attribute block %llu in inode #%lu" ,
4941+ ext4_error (sb , "bad extended attribute block %llu inode #%lu" ,
49464942 ei -> i_file_acl , inode -> i_ino );
49474943 ret = - EIO ;
49484944 goto bad_inode ;
@@ -4988,8 +4984,7 @@ struct inode *ext4_iget(struct super_block *sb, unsigned long ino)
49884984 new_decode_dev (le32_to_cpu (raw_inode -> i_block [1 ])));
49894985 } else {
49904986 ret = - EIO ;
4991- ext4_error (inode -> i_sb , __func__ ,
4992- "bogus i_mode (%o) for inode=%lu" ,
4987+ ext4_error (inode -> i_sb , "bogus i_mode (%o) for inode=%lu" ,
49934988 inode -> i_mode , inode -> i_ino );
49944989 goto bad_inode ;
49954990 }
@@ -5228,10 +5223,8 @@ int ext4_write_inode(struct inode *inode, int wait)
52285223 if (wait )
52295224 sync_dirty_buffer (iloc .bh );
52305225 if (buffer_req (iloc .bh ) && !buffer_uptodate (iloc .bh )) {
5231- ext4_error (inode -> i_sb , __func__ ,
5232- "IO error syncing inode, "
5233- "inode=%lu, block=%llu" ,
5234- inode -> i_ino ,
5226+ ext4_error (inode -> i_sb , "IO error syncing inode, "
5227+ "inode=%lu, block=%llu" , inode -> i_ino ,
52355228 (unsigned long long )iloc .bh -> b_blocknr );
52365229 err = - EIO ;
52375230 }
@@ -5644,7 +5637,7 @@ int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode)
56445637 EXT4_STATE_NO_EXPAND );
56455638 if (mnt_count !=
56465639 le16_to_cpu (sbi -> s_es -> s_mnt_count )) {
5647- ext4_warning (inode -> i_sb , __func__ ,
5640+ ext4_warning (inode -> i_sb ,
56485641 "Unable to expand inode %lu. Delete"
56495642 " some EAs or run e2fsck." ,
56505643 inode -> i_ino );
0 commit comments