diff options
Diffstat (limited to 'fs/gfs2/ops_inode.c')
| -rw-r--r-- | fs/gfs2/ops_inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index 4e64352d49de..98cdd05f3316 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
| @@ -1071,6 +1071,9 @@ int gfs2_permission(struct inode *inode, int mask) | |||
| 1071 | return error; | 1071 | return error; |
| 1072 | } | 1072 | } |
| 1073 | 1073 | ||
| 1074 | /* | ||
| 1075 | * XXX: should be changed to have proper ordering by opencoding simple_setsize | ||
| 1076 | */ | ||
| 1074 | static int setattr_size(struct inode *inode, struct iattr *attr) | 1077 | static int setattr_size(struct inode *inode, struct iattr *attr) |
| 1075 | { | 1078 | { |
| 1076 | struct gfs2_inode *ip = GFS2_I(inode); | 1079 | struct gfs2_inode *ip = GFS2_I(inode); |
| @@ -1081,7 +1084,7 @@ static int setattr_size(struct inode *inode, struct iattr *attr) | |||
| 1081 | error = gfs2_trans_begin(sdp, 0, sdp->sd_jdesc->jd_blocks); | 1084 | error = gfs2_trans_begin(sdp, 0, sdp->sd_jdesc->jd_blocks); |
| 1082 | if (error) | 1085 | if (error) |
| 1083 | return error; | 1086 | return error; |
| 1084 | error = vmtruncate(inode, attr->ia_size); | 1087 | error = simple_setsize(inode, attr->ia_size); |
| 1085 | gfs2_trans_end(sdp); | 1088 | gfs2_trans_end(sdp); |
| 1086 | if (error) | 1089 | if (error) |
| 1087 | return error; | 1090 | return error; |
