Whamcloud - gitweb
libsupport: fix error handling in quota_write_inode
authorzhangyi (F) <yi.zhang@huawei.com>
Mon, 24 Jul 2017 07:01:26 +0000 (15:01 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 24 Jul 2017 19:15:39 +0000 (15:15 -0400)
commita108ee41eb8454e29e792e54ec2382b538b2bf1e
tree4db885728d6d1ae9c353d59247bcc9f4f241eaf3
parentb55571cdf7206b780ff4116ca975fd8d3af5f353
libsupport: fix error handling in quota_write_inode

The error return value of quota_file_create() is no longer < 0,
and the error handling in quota_write_inode() is incorrect,
fix these. This also fix a tune2fs segfault that currently
occurs when we add project and quota features to an inode
exhaustion ext4 filesystem.

Fixes: a701823a3150("libsupport: fix gcc -Wall nits")

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/mkquota.c
lib/support/quotaio.c