summaryrefslogtreecommitdiffstats
path: root/fs/ext3/file.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2011-05-24 22:24:47 +0200
committerJan Kara <jack@suse.cz>2011-06-25 17:29:51 +0200
commit40680f2fa4670ab35ee554822a69dda1a118f966 (patch)
tree24d8fa1e6354b851b2a268a6681270fde4ef8b5a /fs/ext3/file.c
parent99cb1a318c37bf462c53d43f4dacb7b4896ce0c9 (diff)
downloadop-kernel-dev-40680f2fa4670ab35ee554822a69dda1a118f966.zip
op-kernel-dev-40680f2fa4670ab35ee554822a69dda1a118f966.tar.gz
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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext3/file.c b/fs/ext3/file.c
index f55df0e..86c8ab3 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,
OpenPOWER on IntegriCloud