diff options
author | npiggin@suse.de <npiggin@suse.de> | 2009-08-20 12:35:05 -0400 |
---|---|---|
committer | al <al@dizzy.pdmi.ras.ru> | 2009-09-24 08:41:47 -0400 |
commit | 25d9e2d15286281ec834b829a4aaf8969011f1cd (patch) | |
tree | e4329a481ca197afae30f04335e023c7d04f7d67 /include/linux/fs.h | |
parent | eca6f534e61919b28fb21aafbd1c2983deae75be (diff) |
truncate: new helpers
Introduce new truncate helpers truncate_pagecache and inode_newsize_ok.
vmtruncate is also consolidated from mm/memory.c and mm/nommu.c and
into mm/truncate.c.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 502d96ef345..2b08b5ce09b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2382,7 +2382,8 @@ extern int buffer_migrate_page(struct address_space *, | |||
2382 | #define buffer_migrate_page NULL | 2382 | #define buffer_migrate_page NULL |
2383 | #endif | 2383 | #endif |
2384 | 2384 | ||
2385 | extern int inode_change_ok(struct inode *, struct iattr *); | 2385 | extern int inode_change_ok(const struct inode *, struct iattr *); |
2386 | extern int inode_newsize_ok(const struct inode *, loff_t offset); | ||
2386 | extern int __must_check inode_setattr(struct inode *, struct iattr *); | 2387 | extern int __must_check inode_setattr(struct inode *, struct iattr *); |
2387 | 2388 | ||
2388 | extern void file_update_time(struct file *file); | 2389 | extern void file_update_time(struct file *file); |