aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2011-03-23 20:48:39 -0400
committerJan Kara <jack@suse.cz>2011-03-24 07:33:51 -0400
commit523334ba508a8baaf5fc9f15fbad9ed04f334f48 (patch)
tree828966b99914646068667b3ec1ca61225ea1b1cf /fs/ext3
parenteddecbb601c9ea3fab7e67d7892010fc9426d1e6 (diff)
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>
Diffstat (limited to 'fs/ext3')
-rw-r--r--fs/ext3/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index ae94f6d949f5..7f5db46308a5 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -3294,7 +3294,7 @@ static int ext3_writepage_trans_blocks(struct inode *inode)
3294 if (ext3_should_journal_data(inode)) 3294 if (ext3_should_journal_data(inode))
3295 ret = 3 * (bpp + indirects) + 2; 3295 ret = 3 * (bpp + indirects) + 2;
3296 else 3296 else
3297 ret = 2 * (bpp + indirects) + 2; 3297 ret = 2 * (bpp + indirects) + indirects + 2;
3298 3298
3299#ifdef CONFIG_QUOTA 3299#ifdef CONFIG_QUOTA
3300 /* We know that structure was already allocated during dquot_initialize so 3300 /* We know that structure was already allocated during dquot_initialize so