ext3: Fix writepage credits computation for ordered mode
commit523334ba508a8baaf5fc9f15fbad9ed04f334f48
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Thu, 24 Mar 2011 00:48:39 +0000 (24 08:48 +0800)
committerJan Kara <jack@suse.cz>
Thu, 24 Mar 2011 11:33:51 +0000 (24 12:33 +0100)
tree828966b99914646068667b3ec1ca61225ea1b1cf
parenteddecbb601c9ea3fab7e67d7892010fc9426d1e6
ext3: Fix writepage credits computation for ordered mode

Original computation forgets to count writes of indirect block themselves
(it only counts with blocks necessary for their allocation) in ordered mode.

Acked-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by:Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/inode.c