diff options
author | Jan Kara <jack@suse.com> | 2015-07-14 07:51:55 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.com> | 2015-07-23 14:59:38 -0400 |
commit | 2e6c97ea4ce6a29941da46d03183c2c0e330fb2f (patch) | |
tree | 9031abad5edebbe64081657e1d0f2e8b560236ef /fs/reiserfs/inode.c | |
parent | 9c89fe0af826bfff36d8019ea6fd78db09b3c478 (diff) |
reiserfs: Handle error from dquot_initialize()
dquot_initialize() can now return error. Handle it where possible.
Signed-off-by: Jan Kara <jack@suse.com>
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index f6f2fbad9777..3d8e7e671d5b 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -3319,8 +3319,11 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) | |||
3319 | /* must be turned off for recursive notify_change calls */ | 3319 | /* must be turned off for recursive notify_change calls */ |
3320 | ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID|ATTR_KILL_SGID); | 3320 | ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID|ATTR_KILL_SGID); |
3321 | 3321 | ||
3322 | if (is_quota_modification(inode, attr)) | 3322 | if (is_quota_modification(inode, attr)) { |
3323 | dquot_initialize(inode); | 3323 | error = dquot_initialize(inode); |
3324 | if (error) | ||
3325 | return error; | ||
3326 | } | ||
3324 | reiserfs_write_lock(inode->i_sb); | 3327 | reiserfs_write_lock(inode->i_sb); |
3325 | if (attr->ia_valid & ATTR_SIZE) { | 3328 | if (attr->ia_valid & ATTR_SIZE) { |
3326 | /* | 3329 | /* |