~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to fs/hpfs/inode.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
 
275
275
        if ((attr->ia_valid & ATTR_SIZE) &&
276
276
            attr->ia_size != i_size_read(inode)) {
277
 
                error = vmtruncate(inode, attr->ia_size);
 
277
                error = inode_newsize_ok(inode, attr->ia_size);
278
278
                if (error)
279
279
                        goto out_unlock;
 
280
 
 
281
                truncate_setsize(inode, attr->ia_size);
 
282
                hpfs_truncate(inode);
280
283
        }
281
284
 
282
285
        setattr_copy(inode, attr);