tree:
https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git simple_copy
head: d6f32b90156624ae9dc06ef5873334a48e9b9806
commit: d6f32b90156624ae9dc06ef5873334a48e9b9806 [5/5] f2fs: use BLK_COPY ioctl for gc.
config: xtensa-randconfig-m031-20210209 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
fs/f2fs/data.c:593 __submit_copy_bio() warn: inconsistent indenting
fs/f2fs/data.c:607 __submit_copy_bio() warn: should '(fio->old_blkaddr -
(sbi->devs[i]).start_blk) << 12' be a 64 bit type?
fs/f2fs/data.c:609 __submit_copy_bio() warn: should '(fio->new_blkaddr -
(sbi->devs[i]).start_blk) << 12' be a 64 bit type?
Old smatch warnings:
arch/xtensa/include/asm/thread_info.h:91 current_thread_info() warn: inconsistent
indenting
fs/f2fs/data.c:611 __submit_copy_bio() warn: inconsistent indenting
fs/f2fs/data.c:2257 f2fs_read_multi_pages() warn: missing error code 'ret'
vim +593 fs/f2fs/data.c
573
574 /**
575 * __submit_copy_bio - issue BLK_COPY,
576 * BLK_COPY copies fio->old_blkaddr to fio->new_blkaddr
577 */
578
579 static int __submit_copy_bio(struct f2fs_io_info *fio)
580 {
581 struct f2fs_sb_info *sbi = fio->sbi;
582 struct block_device *bdev = f2fs_target_device(fio->sbi, fio->old_blkaddr,
NULL);
583 struct block_device *bdev2 = f2fs_target_device(fio->sbi, fio->new_blkaddr,
NULL);
584 int ret = 0, i;
585 struct range_entry rlist;
586
587 if (bdev != bdev2)
588 return -EAGAIN;
589
590 /*TODO: temp error checks, need to figure out for different devices how to handle
*/
591 if (!fio->old_blkaddr) {
592 printk("%s:%s:%d: old_blkaddr NULL \n", __FILE__, __func__, __LINE__);
593 BUG();
594 } else if (!fio->new_blkaddr) {
595 printk("%s:%s:%d: new_blkaddr NULL \n", __FILE__, __func__, __LINE__);
596 BUG();
597 } else if (!f2fs_target_device_index(fio->sbi, fio->old_blkaddr)) {
598 printk("%s:%s:%d: old_blkaddr device is CNS\n", __FILE__, __func__,
__LINE__);
599 BUG();
600 } else if (!f2fs_target_device_index(fio->sbi, fio->new_blkaddr)) {
601 printk("%s:%s:%d: new_blkaddr device is CNS\n", __FILE__, __func__,
__LINE__);
602 BUG();
603 }
604
605 i = f2fs_target_device_index(fio->sbi, fio->old_blkaddr);
606
607 rlist.src = (fio->old_blkaddr - FDEV(i).start_blk) <<
12;
608 rlist.len = PAGE_SIZE;
609 ret = blkdev_issue_copy(bdev, 1, &rlist, bdev,
(fio->new_blkaddr - FDEV(i).start_blk) << 12, 0);
610
611 return ret;
612 }
613
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org