From: Aneesh Kumar K.V Date: Sat, 13 Sep 2008 17:06:18 +0000 (-0400) Subject: ext4: Properly update i_disksize. X-Git-Tag: v2.6.28-rc1~709^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf17fea6575cb1739552e1d0cb2b446305ee3d0c;p=pandora-kernel.git ext4: Properly update i_disksize. With delayed allocation we use i_data_sem to update i_disksize. We need to update i_disksize only if the new size specified is greater than the current value and we need to make sure we don't race with other i_disksize update. With delayed allocation we will switch to the write_begin function for non-delayed allocation if we are low on free blocks. This means the write_begin function for non-delayed allocation also needs to use the same locking. We also need to check and update i_disksize even if the new size is less that inode.i_size because of delayed allocation. Signed-off-by: Aneesh Kumar K.V Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed