check ATTR_SIZE contraints in inode_change_ok
[deliverable/linux.git] / fs / adfs / inode.c
index b3dec193036bd95f25841eec930b845e77eefdf4..65794b8fe79ebe81d760bd1da6a4e8b5dd461680 100644 (file)
@@ -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;
This page took 0.044645 seconds and 5 git commands to generate.