aboutsummaryrefslogtreecommitdiffstats
path: root/fs/adfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/adfs/inode.c')
-rw-r--r--fs/adfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c
index b3dec193036b..65794b8fe79e 100644
--- a/fs/adfs/inode.c
+++ b/fs/adfs/inode.c
@@ -333,10 +333,7 @@ adfs_notify_change(struct dentry *dentry, struct iattr *attr)
333 333
334 /* XXX: this is missing some actual on-disk truncation.. */ 334 /* XXX: this is missing some actual on-disk truncation.. */
335 if (ia_valid & ATTR_SIZE) 335 if (ia_valid & ATTR_SIZE)
336 error = simple_setsize(inode, attr->ia_size); 336 truncate_setsize(inode, attr->ia_size);
337
338 if (error)
339 goto out;
340 337
341 if (ia_valid & ATTR_MTIME) { 338 if (ia_valid & ATTR_MTIME) {
342 inode->i_mtime = attr->ia_mtime; 339 inode->i_mtime = attr->ia_mtime;