ext2: Handle error from dquot_initalize()

dquot_initialize() can now return error. Handle it where possible.

Signed-off-by: Jan Kara <jack@suse.com>
This commit is contained in:
Jan Kara
2015-06-29 16:08:45 +02:00
parent 6184fc0b8d
commit c2edb305d6
3 changed files with 43 additions and 15 deletions
+4 -1
View File
@@ -577,7 +577,10 @@ got:
goto fail;
}
dquot_initialize(inode);
err = dquot_initialize(inode);
if (err)
goto fail_drop;
err = dquot_alloc_inode(inode);
if (err)
goto fail_drop;