]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/f2fs/f2fs.h
f2fs: in prior to issue big discard
authorChao Yu <yuchao0@huawei.com>
Sat, 15 Apr 2017 06:09:37 +0000 (14:09 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 19 Apr 2017 18:00:42 +0000 (11:00 -0700)
commitba48a33ef6faa573257b2a4181329f2d1eaafed9
tree7aaa4bfc9a90eaa0e57b532b590cbd196f9ec0da
parent46f84c2c058784f42f2d021df79384ec66cdb256
f2fs: in prior to issue big discard

Keep issuing big size discard in prior instead of the one with random
size, so that we expect that it will help to:
- be quick to recycle unused large space in flash storage device.
- give a chance for
  a) wait to merge small piece discards into bigger one, or
  b) avoid issuing discards while they have being reallocated by SSR.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c