summaryrefslogtreecommitdiffstats
path: root/kernel/fs/reiserfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/reiserfs/inode.c')
-rw-r--r--kernel/fs/reiserfs/inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/fs/reiserfs/inode.c b/kernel/fs/reiserfs/inode.c
index f6f2fbad9..3d8e7e671 100644
--- a/kernel/fs/reiserfs/inode.c
+++ b/kernel/fs/reiserfs/inode.c
@@ -3319,8 +3319,11 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
/* must be turned off for recursive notify_change calls */
ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID|ATTR_KILL_SGID);
- if (is_quota_modification(inode, attr))
- dquot_initialize(inode);
+ if (is_quota_modification(inode, attr)) {
+ error = dquot_initialize(inode);
+ if (error)
+ return error;
+ }
reiserfs_write_lock(inode->i_sb);
if (attr->ia_valid & ATTR_SIZE) {
/*