@@ -720,7 +720,7 @@ static int ext4_alloc_blocks(handle_t *handle, struct inode *inode,
720720 return ret ;
721721failed_out :
722722 for (i = 0 ; i < index ; i ++ )
723- ext4_free_blocks (handle , inode , 0 , new_blocks [i ], 1 , 0 );
723+ ext4_free_blocks (handle , inode , NULL , new_blocks [i ], 1 , 0 );
724724 return ret ;
725725}
726726
@@ -823,20 +823,20 @@ static int ext4_alloc_branch(handle_t *handle, struct inode *inode,
823823 return err ;
824824failed :
825825 /* Allocation failed, free what we already allocated */
826- ext4_free_blocks (handle , inode , 0 , new_blocks [0 ], 1 , 0 );
826+ ext4_free_blocks (handle , inode , NULL , new_blocks [0 ], 1 , 0 );
827827 for (i = 1 ; i <= n ; i ++ ) {
828828 /*
829829 * branch[i].bh is newly allocated, so there is no
830830 * need to revoke the block, which is why we don't
831831 * need to set EXT4_FREE_BLOCKS_METADATA.
832832 */
833- ext4_free_blocks (handle , inode , 0 , new_blocks [i ], 1 ,
833+ ext4_free_blocks (handle , inode , NULL , new_blocks [i ], 1 ,
834834 EXT4_FREE_BLOCKS_FORGET );
835835 }
836836 for (i = n + 1 ; i < indirect_blks ; i ++ )
837- ext4_free_blocks (handle , inode , 0 , new_blocks [i ], 1 , 0 );
837+ ext4_free_blocks (handle , inode , NULL , new_blocks [i ], 1 , 0 );
838838
839- ext4_free_blocks (handle , inode , 0 , new_blocks [i ], num , 0 );
839+ ext4_free_blocks (handle , inode , NULL , new_blocks [i ], num , 0 );
840840
841841 return err ;
842842}
@@ -924,7 +924,7 @@ static int ext4_splice_branch(handle_t *handle, struct inode *inode,
924924 ext4_free_blocks (handle , inode , where [i ].bh , 0 , 1 ,
925925 EXT4_FREE_BLOCKS_FORGET );
926926 }
927- ext4_free_blocks (handle , inode , 0 , le32_to_cpu (where [num ].key ),
927+ ext4_free_blocks (handle , inode , NULL , le32_to_cpu (where [num ].key ),
928928 blks , 0 );
929929
930930 return err ;
@@ -4228,7 +4228,7 @@ static int ext4_clear_blocks(handle_t *handle, struct inode *inode,
42284228 for (p = first ; p < last ; p ++ )
42294229 * p = 0 ;
42304230
4231- ext4_free_blocks (handle , inode , 0 , block_to_free , count , flags );
4231+ ext4_free_blocks (handle , inode , NULL , block_to_free , count , flags );
42324232 return 0 ;
42334233}
42344234
@@ -4416,7 +4416,7 @@ static void ext4_free_branches(handle_t *handle, struct inode *inode,
44164416 * transaction where the data blocks are
44174417 * actually freed.
44184418 */
4419- ext4_free_blocks (handle , inode , 0 , nr , 1 ,
4419+ ext4_free_blocks (handle , inode , NULL , nr , 1 ,
44204420 EXT4_FREE_BLOCKS_METADATA |
44214421 EXT4_FREE_BLOCKS_FORGET );
44224422
@@ -4875,7 +4875,7 @@ struct inode *ext4_iget(struct super_block *sb, unsigned long ino)
48754875 return inode ;
48764876
48774877 ei = EXT4_I (inode );
4878- iloc .bh = 0 ;
4878+ iloc .bh = NULL ;
48794879
48804880 ret = __ext4_get_inode_loc (inode , & iloc , 0 );
48814881 if (ret < 0 )
0 commit comments