Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux...
[sfrench/cifs-2.6.git] / fs / udf / file.c
index 83092fb025e2a7e282f44029383a55adfe0e39c0..baae3a723946e5b89d9a9cb90b576e4716113b7e 100644 (file)
@@ -238,7 +238,7 @@ int udf_setattr(struct dentry *dentry, struct iattr *iattr)
        if (error)
                return error;
 
-       if (iattr->ia_valid & ATTR_SIZE)
+       if (is_quota_modification(inode, iattr))
                dquot_initialize(inode);
 
        if ((iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) ||