]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ext4: journal credits reservation fixes for extent file writepage
authorMingming Cao <cmm@us.ibm.com>
Wed, 20 Aug 2008 02:16:05 +0000 (22:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 20 Aug 2008 02:16:05 +0000 (22:16 -0400)
commitee12b630687d510f6f4b6d4acdc4e267fd4adeda
tree8dd253073c5e811751bf1bb479fb03f772e42406
parenta02908f19c819aeec5e3dcf238adaa6deddd70b0
ext4: journal credits reservation fixes for extent file writepage

This patch modified the writepage/write_begin credit calculation for
extent files, to use the credits caculation helper function.

The current calculation of how many index/leaf blocks should be
accounted is too conservetive, it always considered the worse case,
where the tree level is 5, and in the case of multiple chunk
allocations, it always assumed no blocks were dirtied in common across
the allocations. This path uses the accurate depth of the inode with
some extras to calculate the index blocks, and also less conservative in
the case of multiple allocation accounting.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4_extents.h
fs/ext4/extents.c
fs/ext4/migrate.c