summaryrefslogtreecommitdiff
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-06-18 14:36:24 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-07-07 21:51:44 -0700
commitf608c38c59c6020bfde14af88630b8d7817003f9 (patch)
tree97f35f92831bf967b1594eb7ffaf2d104e969a4c /fs/f2fs/gc.c
parent79963d967b492876fa17c8c2c2c17b7438683d9b (diff)
f2fs: clean up parameter of f2fs_allocate_data_block()
Use validation of @fio to inidcate whether caller want to serialize IOs in io.io_list or not, then @add_list will be redundant, remove it. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index cb18a99a7f87..5e1368ce2389 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -866,7 +866,7 @@ static int move_data_block(struct inode *inode, block_t bidx,
}
f2fs_allocate_data_block(fio.sbi, NULL, fio.old_blkaddr, &newaddr,
- &sum, CURSEG_COLD_DATA, NULL, false);
+ &sum, CURSEG_COLD_DATA, NULL);
fio.encrypted_page = f2fs_pagecache_get_page(META_MAPPING(fio.sbi),
newaddr, FGP_LOCK | FGP_CREAT, GFP_NOFS);