diff options
author | Jan Kara <jack@suse.cz> | 2011-05-25 17:39:48 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-25 17:39:48 -0400 |
commit | ae24f28d39610a4810c78185cf599a771cf6ee1f (patch) | |
tree | a4969875b6345f6ee3eb8bdf3a0af823cab33e3f /fs/ext4/file.c | |
parent | 556b27abf73833923d5cd4be80006292e1b31662 (diff) | |
download | lwn-ae24f28d39610a4810c78185cf599a771cf6ee1f.tar.gz lwn-ae24f28d39610a4810c78185cf599a771cf6ee1f.zip |
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>
Diffstat (limited to 'fs/ext4/file.c')
-rw-r--r-- | fs/ext4/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 7b80d543b89e..2c0972322009 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -272,7 +272,6 @@ const struct file_operations ext4_file_operations = { }; const struct inode_operations ext4_file_inode_operations = { - .truncate = ext4_truncate, .setattr = ext4_setattr, .getattr = ext4_getattr, #ifdef CONFIG_EXT4_FS_XATTR |