ext3: Convert ext3 to new truncate calling convention
commit40680f2fa4670ab35ee554822a69dda1a118f966
authorJan Kara <jack@suse.cz>
Tue, 24 May 2011 20:24:47 +0000 (24 22:24 +0200)
committerJan Kara <jack@suse.cz>
Sat, 25 Jun 2011 15:29:51 +0000 (25 17:29 +0200)
tree24d8fa1e6354b851b2a268a6681270fde4ef8b5a
parent99cb1a318c37bf462c53d43f4dacb7b4896ce0c9
ext3: Convert ext3 to new truncate calling convention

Mostly trivial conversion. We fix a bug that IS_IMMUTABLE and IS_APPEND files
could not be truncated during failed writes as we change the code.  In fact the
test is not needed at all because both IS_IMMUTABLE and IS_APPEND is tested in
upper layers in do_sys_[f]truncate(), may_write(), etc.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/file.c
fs/ext3/inode.c
include/linux/ext3_fs.h