diff options
author | Jan Kara <jack@suse.com> | 2015-07-14 11:51:55 (GMT) |
---|---|---|
committer | Jan Kara <jack@suse.com> | 2015-07-23 18:59:38 (GMT) |
commit | 2e6c97ea4ce6a29941da46d03183c2c0e330fb2f (patch) | |
tree | 9031abad5edebbe64081657e1d0f2e8b560236ef /fs/reiserfs/inode.c | |
parent | 9c89fe0af826bfff36d8019ea6fd78db09b3c478 (diff) | |
download | linux-2e6c97ea4ce6a29941da46d03183c2c0e330fb2f.tar.xz |
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 f6f2fba..3d8e7e6 100644 --- a/fs/reiserfs/inode.c +++ b/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) { /* |