We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73ac04 commit 94d4ac4Copy full SHA for 94d4ac4
fs/f2fs/data.c
@@ -3940,7 +3940,7 @@ static int check_swap_activate_fast(struct swap_info_struct *sis,
3940
/* hole */
3941
if (!(map.m_flags & F2FS_MAP_FLAGS)) {
3942
f2fs_err(sbi, "Swapfile has holes\n");
3943
- ret = -ENOENT;
+ ret = -EINVAL;
3944
goto out;
3945
}
3946
@@ -4096,7 +4096,7 @@ static int check_swap_activate(struct swap_info_struct *sis,
4096
return ret;
4097
bad_bmap:
4098
4099
- return -ENOENT;
+ return -EINVAL;
4100
4101
4102
static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file,
0 commit comments