]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Fix quota accounting error with fallocate
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 25 Jan 2010 09:00:31 +0000 (04:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Jan 2010 09:00:31 +0000 (04:00 -0500)
commit5f634d064c709ea02c3cdaa850a08323a4a4bf28
tree3f81e9c56cd8348b7bb94f1d54efff696374c929
parent1db913823c0f8360fccbd24ca67eb073966a5ffd
ext4: Fix quota accounting error with fallocate

When we fallocate a region of the file which we had recently written,
and which is still in the page cache marked as delayed allocated blocks
we need to make sure we don't do the quota update on writepage path.
This is because the needed quota updated would have already be done
by fallocate.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inode.c