It can happen that write does not use all the blocks allocated in
commit160f4970255436f02255adc560696907421fab86
authorJan Kara <jack@suse.cz>
Wed, 14 Oct 2009 02:57:21 +0000 (14 04:57 +0200)
committerjames toy <toyj@union.edu>
Wed, 14 Oct 2009 02:57:21 +0000 (14 04:57 +0200)
treeb6fa7a448493a98b0e5f394b62203404b9d67a4e
parentf202a54c3556da03947447ac345b70d31bee4015
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>
fs/reiserfs/inode.c