Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223778
b: refs/heads/master
c: 9e55cd5
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Nov 30, 2010
1 parent 7a2d86d commit b23fc9c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc18152eb7c27653199546bd14e991a451ab8d1b
refs/heads/master: 9e55cd53728719ac3a3234a6618259ab8e203a10
9 changes: 0 additions & 9 deletions trunk/fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,17 +916,8 @@ static int __gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr)
if (error)
return error;

if ((attr->ia_valid & ATTR_SIZE) &&
attr->ia_size != i_size_read(inode)) {
error = vmtruncate(inode, attr->ia_size);
if (error)
return error;
}

setattr_copy(inode, attr);
mark_inode_dirty(inode);

gfs2_assert_warn(GFS2_SB(inode), !error);
gfs2_trans_add_bh(ip->i_gl, dibh, 1);
gfs2_dinode_out(ip, dibh->b_data);
brelse(dibh);
Expand Down
9 changes: 0 additions & 9 deletions trunk/fs/gfs2/ops_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,17 +1104,8 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
if (error)
goto out_end_trans;

if ((attr->ia_valid & ATTR_SIZE) &&
attr->ia_size != i_size_read(inode)) {
int error;

error = vmtruncate(inode, attr->ia_size);
gfs2_assert_warn(sdp, !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);
Expand Down
9 changes: 0 additions & 9 deletions trunk/fs/gfs2/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b23fc9c

Please sign in to comment.