aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index f74f1400eccd..e127c53ec2e7 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -966,10 +966,10 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
966 if (status) 966 if (status)
967 return status; 967 return status;
968 968
969 if (is_quota_modification(inode, attr))
970 dquot_initialize(inode);
969 size_change = S_ISREG(inode->i_mode) && attr->ia_valid & ATTR_SIZE; 971 size_change = S_ISREG(inode->i_mode) && attr->ia_valid & ATTR_SIZE;
970 if (size_change) { 972 if (size_change) {
971 dquot_initialize(inode);
972
973 status = ocfs2_rw_lock(inode, 1); 973 status = ocfs2_rw_lock(inode, 1);
974 if (status < 0) { 974 if (status < 0) {
975 mlog_errno(status); 975 mlog_errno(status);