diff options
author | Marco Stornelli <marco.stornelli@gmail.com> | 2012-12-15 12:00:02 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-20 18:46:29 -0500 |
commit | 7898575fc81bd707ce0844cb06874d48e39bbe09 (patch) | |
tree | ab30305f0d957854497fababde6caff644b2bfca /mm | |
parent | d30357f2f0ec0bfb67fd39f8f76d22d02d78631e (diff) | |
download | linux-7898575fc81bd707ce0844cb06874d48e39bbe09.tar.gz linux-7898575fc81bd707ce0844cb06874d48e39bbe09.tar.bz2 linux-7898575fc81bd707ce0844cb06874d48e39bbe09.zip |
mm: drop vmtruncate
Removed vmtruncate
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/truncate.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index d51ce92d6e83..c75b736e54b7 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -577,29 +577,6 @@ void truncate_setsize(struct inode *inode, loff_t newsize) EXPORT_SYMBOL(truncate_setsize); /** - * vmtruncate - unmap mappings "freed" by truncate() syscall - * @inode: inode of the file used - * @newsize: file offset to start truncating - * - * This function is deprecated and truncate_setsize or truncate_pagecache - * should be used instead, together with filesystem specific block truncation. - */ -int vmtruncate(struct inode *inode, loff_t newsize) -{ - int error; - - error = inode_newsize_ok(inode, newsize); - if (error) - return error; - - truncate_setsize(inode, newsize); - if (inode->i_op->truncate) - inode->i_op->truncate(inode); - return 0; -} -EXPORT_SYMBOL(vmtruncate); - -/** * truncate_pagecache_range - unmap and remove pagecache that is hole-punched * @inode: inode * @lstart: offset of beginning of hole |