diff options
author | Chao Yu | 2018-08-08 11:36:29 +0200 |
---|---|---|
committer | Jaegeuk Kim | 2018-08-13 19:48:17 +0200 |
commit | 3f16ecd950e56d60a574f73af9538f6e24030f9a (patch) | |
tree | cf9e6c6d502814f883d59548226c095af16dcfa4 /fs/f2fs/xattr.h | |
parent | f2fs: fix use-after-free of dicard command entry (diff) | |
download | kernel-qcow2-linux-3f16ecd950e56d60a574f73af9538f6e24030f9a.tar.gz kernel-qcow2-linux-3f16ecd950e56d60a574f73af9538f6e24030f9a.tar.xz kernel-qcow2-linux-3f16ecd950e56d60a574f73af9538f6e24030f9a.zip |
f2fs: fix to return success when trimming meta area
generic/251
--- tests/generic/251.out 2016-05-03 20:20:11.381899000 +0800
QA output created by 251
Running the test: done.
+fstrim: /mnt/scratch_f2fs: FITRIM ioctl failed: Invalid argument
+fstrim: /mnt/scratch_f2fs: FITRIM ioctl failed: Invalid argument
+fstrim: /mnt/scratch_f2fs: FITRIM ioctl failed: Invalid argument
+fstrim: /mnt/scratch_f2fs: FITRIM ioctl failed: Invalid argument
+fstrim: /mnt/scratch_f2fs: FITRIM ioctl failed: Invalid argument
...
Ran: generic/251
Failures: generic/251
The reason is coverage of fstrim locates in meta area, previously we
just return -EINVAL for such case, making generic/251 failed, to fix
this problem, let's relieve restriction to return success with no
block discarded.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/xattr.h')
0 files changed, 0 insertions, 0 deletions