f2fs: change error code to -ENOMEM from -EINVAL
The error case of failing allocating memory should return -ENOMEM. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
7c77bf7de1
commit
f365c6cc85
|
@ -269,7 +269,7 @@ static int f2fs_set_qf_name(struct super_block *sb, int qtype,
|
|||
if (!qname) {
|
||||
f2fs_msg(sb, KERN_ERR,
|
||||
"Not enough memory for storing quotafile name");
|
||||
return -EINVAL;
|
||||
return -ENOMEM;
|
||||
}
|
||||
if (F2FS_OPTION(sbi).s_qf_names[qtype]) {
|
||||
if (strcmp(F2FS_OPTION(sbi).s_qf_names[qtype], qname) == 0)
|
||||
|
|
Loading…
Reference in New Issue