quota: unify quota init condition in setattr
[deliverable/linux.git] / fs / reiserfs / inode.c
index dc2c65e04853b8750d0a1fad38ea5521daa185af..0f22fdaf54ac037ecc21dea052d135d340a5d510 100644 (file)
@@ -3076,9 +3076,10 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
        ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID|ATTR_KILL_SGID);
 
        depth = reiserfs_write_lock_once(inode->i_sb);
-       if (attr->ia_valid & ATTR_SIZE) {
+       if (is_quota_modification(inode, attr))
                dquot_initialize(inode);
 
+       if (attr->ia_valid & ATTR_SIZE) {
                /* version 2 items will be caught by the s_maxbytes check
                 ** done for us in vmtruncate
                 */
This page took 0.024314 seconds and 5 git commands to generate.