diff options
Diffstat (limited to 'fs/gfs2/ops_inode.c')
-rw-r--r-- | fs/gfs2/ops_inode.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index 12cbea7502c..457ecd15518 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
@@ -1104,17 +1104,8 @@ static int setattr_chown(struct inode *inode, struct iattr *attr) | |||
1104 | if (error) | 1104 | if (error) |
1105 | goto out_end_trans; | 1105 | goto out_end_trans; |
1106 | 1106 | ||
1107 | if ((attr->ia_valid & ATTR_SIZE) && | ||
1108 | attr->ia_size != i_size_read(inode)) { | ||
1109 | int error; | ||
1110 | |||
1111 | error = vmtruncate(inode, attr->ia_size); | ||
1112 | gfs2_assert_warn(sdp, !error); | ||
1113 | } | ||
1114 | |||
1115 | setattr_copy(inode, attr); | 1107 | setattr_copy(inode, attr); |
1116 | mark_inode_dirty(inode); | 1108 | mark_inode_dirty(inode); |
1117 | |||
1118 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); | 1109 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
1119 | gfs2_dinode_out(ip, dibh->b_data); | 1110 | gfs2_dinode_out(ip, dibh->b_data); |
1120 | brelse(dibh); | 1111 | brelse(dibh); |