Patchwork ext3:Fix credits computing for ordered mode.

login
register
mail settings
Submitter Yongqiang Yang
Date March 24, 2011, 12:35 a.m.
Message ID <1300926941-27304-1-git-send-email-xiaoqiangnk@gmail.com>
Download mbox | patch
Permalink /patch/88128/
State Not Applicable
Headers show

Comments

Yongqiang Yang - March 24, 2011, 12:35 a.m.
Please enter the commit message for your changes. Lines starting
---
 fs/ext3/inode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index ae94f6d..7f5db46 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -3294,7 +3294,7 @@  static int ext3_writepage_trans_blocks(struct inode *inode)
 	if (ext3_should_journal_data(inode))
 		ret = 3 * (bpp + indirects) + 2;
 	else
-		ret = 2 * (bpp + indirects) + 2;
+		ret = 2 * (bpp + indirects) + indirects + 2;
 
 #ifdef CONFIG_QUOTA
 	/* We know that structure was already allocated during dquot_initialize so