ext4: Calculate required journal credits for inserting an extent properly

When we have space in the extent tree leaf node we should be able to
insert the extent with much less journal credits. The code was doing
proper calculation but missed a return statement.

Reported-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

authored by Aneesh Kumar K.V and committed by Theodore Ts'o 5887e98b ffacfa7a

+1
+1
fs/ext4/extents.c
··· 1977 1977 */ 1978 1978 /* 1 bitmap, 1 block group descriptor */ 1979 1979 ret = 2 + EXT4_META_TRANS_BLOCKS(inode->i_sb); 1980 + return ret; 1980 1981 } 1981 1982 } 1982 1983