* [linux-review:UPDATE-20200422-110218/Sahitya-Tummala/f2fs-prevent-meta-updates-while-checkpoint-is-in-progress/20200327-044221 1/1] fs/f2fs/gc.c:1444:7: error: implicit declaration of function 'fatal_signal_pending'
@ 2020-04-22 14:23 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-22 14:23 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3681 bytes --]
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200422-110218/Sahitya-Tummala/f2fs-prevent-meta-updates-while-checkpoint-is-in-progress/20200327-044221
head: 6fc6ac22248dde65b08f26ed8f0f77abf247c3ac
commit: 6fc6ac22248dde65b08f26ed8f0f77abf247c3ac [1/1] f2fs: prevent meta updates while checkpoint is in progress
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6fc6ac22248dde65b08f26ed8f0f77abf247c3ac
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
fs/f2fs/gc.c: In function 'free_segment_range':
>> fs/f2fs/gc.c:1444:7: error: implicit declaration of function 'fatal_signal_pending' [-Werror=implicit-function-declaration]
1444 | if (fatal_signal_pending(current)) {
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/fatal_signal_pending +1444 fs/f2fs/gc.c
1401
1402 static int free_segment_range(struct f2fs_sb_info *sbi,
1403 unsigned int secs, bool gc_only)
1404 {
1405 unsigned int segno, next_inuse, start, end;
1406 struct cp_control cpc = { CP_RESIZE, 0, 0, 0 };
1407 int gc_mode, gc_type;
1408 int err = 0;
1409 int type;
1410
1411 /* Force block allocation for GC */
1412 MAIN_SECS(sbi) -= secs;
1413 start = MAIN_SECS(sbi) * sbi->segs_per_sec;
1414 end = MAIN_SEGS(sbi) - 1;
1415
1416 mutex_lock(&DIRTY_I(sbi)->seglist_lock);
1417 for (gc_mode = 0; gc_mode < MAX_GC_POLICY; gc_mode++)
1418 if (SIT_I(sbi)->last_victim[gc_mode] >= start)
1419 SIT_I(sbi)->last_victim[gc_mode] = 0;
1420
1421 for (gc_type = BG_GC; gc_type <= FG_GC; gc_type++)
1422 if (sbi->next_victim_seg[gc_type] >= start)
1423 sbi->next_victim_seg[gc_type] = NULL_SEGNO;
1424 mutex_unlock(&DIRTY_I(sbi)->seglist_lock);
1425
1426 /* Move out cursegs from the target range */
1427 for (type = CURSEG_HOT_DATA; type < NR_CURSEG_TYPE; type++)
1428 allocate_segment_for_resize(sbi, type, start, end);
1429
1430 /* do GC to move out valid blocks in the range */
1431 for (segno = start; segno <= end; segno += sbi->segs_per_sec) {
1432 struct gc_inode_list gc_list = {
1433 .ilist = LIST_HEAD_INIT(gc_list.ilist),
1434 .iroot = RADIX_TREE_INIT(gc_list.iroot, GFP_NOFS),
1435 };
1436
1437 do_garbage_collect(sbi, segno, &gc_list, FG_GC);
1438 put_gc_inode(&gc_list);
1439
1440 if (!gc_only && get_valid_blocks(sbi, segno, true)) {
1441 err = -EAGAIN;
1442 goto out;
1443 }
> 1444 if (fatal_signal_pending(current)) {
1445 err = -ERESTARTSYS;
1446 goto out;
1447 }
1448 }
1449 if (gc_only)
1450 goto out;
1451
1452 err = f2fs_write_checkpoint(sbi, &cpc);
1453 if (err)
1454 goto out;
1455
1456 next_inuse = find_next_inuse(FREE_I(sbi), end + 1, start);
1457 if (next_inuse <= end) {
1458 f2fs_err(sbi, "segno %u should be free but still inuse!",
1459 next_inuse);
1460 f2fs_bug_on(sbi, 1);
1461 }
1462 out:
1463 MAIN_SECS(sbi) += secs;
1464 return err;
1465 }
1466
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 53889 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-22 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22 14:23 [linux-review:UPDATE-20200422-110218/Sahitya-Tummala/f2fs-prevent-meta-updates-while-checkpoint-is-in-progress/20200327-044221 1/1] fs/f2fs/gc.c:1444:7: error: implicit declaration of function 'fatal_signal_pending' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.