]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
reiserfs: truncate blocks not used by a write
authorJan Kara <jack@suse.cz>
Thu, 17 Dec 2009 23:27:06 +0000 (15:27 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Jan 2010 23:18:23 +0000 (15:18 -0800)
commit781d5c42490436e4e0b6b624088b109695cf6b00
tree7f03962ef63917608953e3bf39da7a990bedb664
parent56a7f72d020e86c33b3c829c9a89d33f8c359305
reiserfs: truncate blocks not used by a write

commit ec8e2f7466ca370f5e09000ca40a71759afc9ac8 upstream.

It can happen that write does not use all the blocks allocated in
write_begin either because of some filesystem error (like ENOSPC) or
because page with data to write has been removed from memory.  We truncate
these blocks so that we don't have dangling blocks beyond i_size.

Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/reiserfs/inode.c