ext4: Convert ext4 to new truncate calling convention
authorJan Kara <jack@suse.cz>
Wed, 25 May 2011 21:39:48 +0000 (17:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 25 May 2011 21:39:48 +0000 (17:39 -0400)
commitae24f28d39610a4810c78185cf599a771cf6ee1f
treea4969875b6345f6ee3eb8bdf3a0af823cab33e3f
parent556b27abf73833923d5cd4be80006292e1b31662
ext4: Convert ext4 to new truncate calling convention

Trivial conversion.  Fixup one error handling case calling vmtruncate()
and remove ->truncate callback. We also fix a bug that IS_IMMUTABLE and
IS_APPEND files could not be truncated during failed writes. In fact, the
test can be completely removed as upper layers do necessary permission
checks for truncate in do_sys_[f]truncate() and may_open() anyway.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/file.c
fs/ext4/inode.c