diff options
Diffstat (limited to 'fs/adfs')
-rw-r--r-- | fs/adfs/inode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index b3dec19..65794b8 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c @@ -333,10 +333,7 @@ adfs_notify_change(struct dentry *dentry, struct iattr *attr) /* XXX: this is missing some actual on-disk truncation.. */ if (ia_valid & ATTR_SIZE) - error = simple_setsize(inode, attr->ia_size); - - if (error) - goto out; + truncate_setsize(inode, attr->ia_size); if (ia_valid & ATTR_MTIME) { inode->i_mtime = attr->ia_mtime; |