diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-03-06 10:36:09 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-05-12 06:36:46 +0300 |
commit | ef8d563f184e1112651f2cbde383d43e599334e8 (patch) | |
tree | 8525d2512d9bf64662815c3c4c67c0a0a42e6c79 /fs/f2fs/checkpoint.c | |
parent | 042be373adf719ab64c4a44ae809d110826becbf (diff) | |
download | linux-ef8d563f184e1112651f2cbde383d43e599334e8.tar.xz |
f2fs: introduce F2FS_IOC_RELEASE_COMPRESS_BLOCKS
There are still reserved blocks on compressed inode, this patch
introduce a new ioctl to help release reserved blocks back to
filesystem, so that userspace can reuse those freed space.
----
Daeho fixed a bug like below.
Now, if writing pages and releasing compress blocks occur
simultaneously, and releasing cblocks is executed more than one time
to a file, then total block count of filesystem and block count of the
file could be incorrect and damaged.
We have to execute releasing compress blocks only one time for a file
without being interfered by writepages path.
---
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
0 files changed, 0 insertions, 0 deletions