projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca29824
)
f2fs: return EINVAL for hole cases in swap file
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 May 2021 14:38:00 +0000
(07:38 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 May 2021 14:38:00 +0000
(07:38 -0700)
This tries to fix xfstests/generic/495.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index 41e260680b27cd05b1fd2881a8c0fd0e69c767df..009a09fb9d88cf6b2804fbd131526b205d517783 100644
(file)
--- a/
fs/f2fs/data.c
+++ b/
fs/f2fs/data.c
@@
-3896,7
+3896,7
@@
static int check_swap_activate_fast(struct swap_info_struct *sis,
/* hole */
if (!(map.m_flags & F2FS_MAP_FLAGS)) {
f2fs_err(sbi, "Swapfile has holes\n");
- ret = -E
NOENT
;
+ ret = -E
INVAL
;
goto out;
}
@@
-4052,7
+4052,7
@@
out:
return ret;
bad_bmap:
f2fs_err(sbi, "Swapfile has holes\n");
- return -E
NOENT
;
+ return -E
INVAL
;
}
static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file,