|
@@ -1325,17 +1325,8 @@ int gfs2_xattr_acl_chmod(struct gfs2_inode *ip, struct iattr *attr, char *data)
|
|
|
if (error)
|
|
|
goto out_trans_end;
|
|
|
|
|
|
- if ((attr->ia_valid & ATTR_SIZE) &&
|
|
|
- attr->ia_size != i_size_read(inode)) {
|
|
|
- int error;
|
|
|
-
|
|
|
- error = vmtruncate(inode, attr->ia_size);
|
|
|
- gfs2_assert_warn(GFS2_SB(inode), !error);
|
|
|
- }
|
|
|
-
|
|
|
setattr_copy(inode, attr);
|
|
|
mark_inode_dirty(inode);
|
|
|
-
|
|
|
gfs2_trans_add_bh(ip->i_gl, dibh, 1);
|
|
|
gfs2_dinode_out(ip, dibh->b_data);
|
|
|
brelse(dibh);
|