]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ext4: Calculate required journal credits for inserting an extent properly
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 6 Jul 2009 03:12:04 +0000 (23:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Jul 2009 03:12:04 +0000 (23:12 -0400)
commit5887e98b609e96ce61ee0528cf94a2bfdc809dd7
tree41cc58790c649da6d4e1d0afa440bda994420ddd
parentffacfa7a79d6c00624196b2d13b0a7f72f2b8227
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>
fs/ext4/extents.c