diff options
author | Jan Kara <jack@suse.cz> | 2009-12-17 15:27:06 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-22 15:18:23 -0800 |
commit | 781d5c42490436e4e0b6b624088b109695cf6b00 (patch) | |
tree | 7f03962ef63917608953e3bf39da7a990bedb664 /drivers/hid | |
parent | 56a7f72d020e86c33b3c829c9a89d33f8c359305 (diff) |
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>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions