From 82e457cec82afe02c4659b6b0c7ea3d45e98791c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 6 Nov 2008 16:49:36 -0500 Subject: [PATCH] --- yaml --- r: 118565 b: refs/heads/master c: ac51d83705c2a38c71f39cde99708b14e6212a60 h: refs/heads/master i: 118563: 1dc1650ce5d4f699b6b1b345ca173d5b211e2917 v: v3 --- [refs] | 2 +- trunk/fs/ext4/inode.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 3b9fc816fc99..a646a87867c3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 14ce0cb411c88681ab8f3a4c9caa7f42e97a3184 +refs/heads/master: ac51d83705c2a38c71f39cde99708b14e6212a60 diff --git a/trunk/fs/ext4/inode.c b/trunk/fs/ext4/inode.c index 8dbf6953845b..5a130b56f1cf 100644 --- a/trunk/fs/ext4/inode.c +++ b/trunk/fs/ext4/inode.c @@ -4580,9 +4580,10 @@ static int ext4_indirect_trans_blocks(struct inode *inode, int nrblocks, static int ext4_index_trans_blocks(struct inode *inode, int nrblocks, int chunk) { if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) - return ext4_indirect_trans_blocks(inode, nrblocks, 0); - return ext4_ext_index_trans_blocks(inode, nrblocks, 0); + return ext4_indirect_trans_blocks(inode, nrblocks, chunk); + return ext4_ext_index_trans_blocks(inode, nrblocks, chunk); } + /* * Account for index blocks, block groups bitmaps and block group * descriptor blocks if modify datablocks and index blocks