summaryrefslogtreecommitdiff
path: root/fs/jfs/file.c
diff options
context:
space:
mode:
authorMarco Stornelli <marco.stornelli@gmail.com>2012-12-15 11:54:25 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-12-20 18:40:52 -0500
commit86dd07d66a2f7284cfe2b771d062dd6c0e331766 (patch)
treeb374b01c76d21e9fc620b26ce8dfec5c1aa980f6 /fs/jfs/file.c
parent70b31c4c88e253f4c2066367401118edab957614 (diff)
downloadlinux-3.10-86dd07d66a2f7284cfe2b771d062dd6c0e331766.tar.gz
linux-3.10-86dd07d66a2f7284cfe2b771d062dd6c0e331766.tar.bz2
linux-3.10-86dd07d66a2f7284cfe2b771d062dd6c0e331766.zip
jfs: 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 'fs/jfs/file.c')
-rw-r--r--fs/jfs/file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/jfs/file.c b/fs/jfs/file.c
index 9d3afd157f9..dd7442c5835 100644
--- a/fs/jfs/file.c
+++ b/fs/jfs/file.c
@@ -119,9 +119,12 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr)
iattr->ia_size != i_size_read(inode)) {
inode_dio_wait(inode);
- rc = vmtruncate(inode, iattr->ia_size);
+ rc = inode_newsize_ok(inode, iattr->ia_size);
if (rc)
return rc;
+
+ truncate_setsize(inode, iattr->ia_size);
+ jfs_truncate(inode);
}
setattr_copy(inode, iattr);
@@ -133,7 +136,6 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr)
}
const struct inode_operations jfs_file_inode_operations = {
- .truncate = jfs_truncate,
.setxattr = jfs_setxattr,
.getxattr = jfs_getxattr,
.listxattr = jfs_listxattr,