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 /include/linux/ext3_fs.h | |
parent | 99cb1a318c37bf462c53d43f4dacb7b4896ce0c9 (diff) | |
download | linux-40680f2fa4670ab35ee554822a69dda1a118f966.tar.gz linux-40680f2fa4670ab35ee554822a69dda1a118f966.tar.bz2 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 'include/linux/ext3_fs.h')
-rw-r--r-- | include/linux/ext3_fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 5e06acf95d0f..9aaa3a84d373 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h @@ -913,7 +913,7 @@ extern void ext3_dirty_inode(struct inode *, int); extern int ext3_change_inode_journal_flag(struct inode *, int); extern int ext3_get_inode_loc(struct inode *, struct ext3_iloc *); extern int ext3_can_truncate(struct inode *inode); -extern void ext3_truncate (struct inode *); +extern void ext3_truncate(struct inode *inode); extern void ext3_set_inode_flags(struct inode *); extern void ext3_get_inode_flags(struct ext3_inode_info *); extern void ext3_set_aops(struct inode *inode); |