diff options
author | Jan Kara <jack@suse.cz> | 2011-05-24 22:24:47 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-06-25 17:29:51 +0200 |
commit | 40680f2fa4670ab35ee554822a69dda1a118f966 (patch) | |
tree | 24d8fa1e6354b851b2a268a6681270fde4ef8b5a /fs/ext3/file.c | |
parent | jbd: Add fixed tracepoints (diff) | |
download | linux-40680f2fa4670ab35ee554822a69dda1a118f966.tar.xz linux-40680f2fa4670ab35ee554822a69dda1a118f966.zip |
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>
Diffstat (limited to 'fs/ext3/file.c')
-rw-r--r-- | fs/ext3/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext3/file.c b/fs/ext3/file.c index f55df0e61cbd..86c8ab343f6f 100644 --- a/fs/ext3/file.c +++ b/fs/ext3/file.c @@ -71,7 +71,6 @@ const struct file_operations ext3_file_operations = { }; const struct inode_operations ext3_file_inode_operations = { - .truncate = ext3_truncate, .setattr = ext3_setattr, #ifdef CONFIG_EXT3_FS_XATTR .setxattr = generic_setxattr, |